[Pkg-shadow-devel] [Git][debian/adduser][zg/bug-1099633] 4 commits: add README.source

Marc Haber (@zugschlus) gitlab at salsa.debian.org
Sun Sep 14 11:42:52 BST 2025



Marc Haber pushed to branch zg/bug-1099633 at Debian / adduser


Commits:
c5220a3e by Marc Haber at 2025-09-14T12:30:24+02:00
add README.source

Git-Dch: ignore

- - - - -
59341c55 by Marc Haber at 2025-09-14T12:32:23+02:00
add gbp.conf

Git-Dch: ignore

- - - - -
73eb550b by Matt Barry at 2025-09-14T12:42:48+02:00
add --no-copy-skel option

Fixes: #1099633

- - - - -
2c48da21 by Matt Barry at 2025-09-14T12:42:48+02:00
document --no-copy-skel

- - - - -


4 changed files:

- adduser
- + debian/README.source
- debian/gbp.conf
- doc/adduser.8


Changes:

=====================================
adduser
=====================================
@@ -132,6 +132,7 @@ our $new_lastgid = undef;
 our $new_lastuid = undef;
 our $new_uid = undef;
 our $no_create_home = undef;
+our $no_copy_skel = undef;
 our $special_home = undef;
 our $special_shell = undef;
 our $add_extra_groups;
@@ -188,6 +189,7 @@ GetOptions(
     'lastgid=i' => \$new_lastgid,
     'lastuid=i' => \$new_lastuid,
     'no-create-home' => \$no_create_home,
+    'no-copy-skel' => \$no_copy_skel,
     'quiet|q' => sub { $verbose = 0; },
     'shell=s' => \$special_shell,
     'system' => \$found_sys_opt,
@@ -926,7 +928,7 @@ if ($action eq "adduser") {
         $returnvalue = RET_INVALID_NAME_FROM_USERADD;
     }
 
-    create_homedir (1, 0); # copy skeleton data
+    create_homedir ($no_copy_skel ? 0 : 1, 0); # copy skeleton data
 
     # useradd without -p has left the account disabled (password string is '!')
     my $yesexpr = langinfo(YESEXPR());


=====================================
debian/README.source
=====================================
@@ -0,0 +1,19 @@
+This package is maintained in git on Salsa, using Otto Kekäläinen's
+documentation about how to maintain packages in git.
+
+Branch names follow DEP-14. gbp should be used to build the package.
+
+As a Debian native package, the conventional upstream branches are missing.
+Development takes place in debian/latest.
+
+Please do all development work in a branch, prefixed with your nickname and a
+slash. Please let Marc merge things into debian/latest. Preferably, use Gitlab
+merge requests. Keep your branch rebased on debian/latest so that a
+fast-forward merge is possible.
+
+$ git remote -v show
+origin  git at salsa.debian.org:debian/adduser.git (fetch)
+origin  git at salsa.debian.org:debian/adduser.git (push)
+
+Recommended Reading: https://optimizedbyotto.com/post/debian-packaging-from-git/
+(Otto Kekäläinen)


=====================================
debian/gbp.conf
=====================================
@@ -1,2 +1,15 @@
 [DEFAULT]
-debian-branch=master
+# DEP-14 format. Other naming convention are available,
+# see DEP-14 for more details.
+debian-branch = debian/latest
+
+# Ensure a human always reviews all the debian/changelog entries.
+spawn-editor = always
+
+# No need to confirm package name or version at any time, git-buildpackage
+# always gets it right.
+interactive = False
+
+# Ensure we always target Debian on Debian branches.
+dch-opt = --vendor=debian
+


=====================================
doc/adduser.8
=====================================
@@ -9,7 +9,7 @@
 .\"            2016 Afif Elghraoui <afif at debian.org>
 .\"            2016 Helge Kreutzmann <debian at helgefjell.de>
 .\"            2021-2022 Jason Franklin <jason at oneway.dev>
-.\"            2022 Matt Barry <matt at hazelmollusk.org>
+.\"            2022 Matt Barry <matt at hazelmollusc.org>
 .\"
 .\" This is free software; see the GNU General Public License version
 .\" 2 or later for copying conditions.  There is NO warranty.
@@ -34,6 +34,7 @@ adduser, addgroup \- add or manipulate users or groups
 .OP \-\-lastgid id
 .OP \-\-lastuid id
 .OP \-\-no\-create\-home
+.OP \-\-no\-copy\-skel
 .OP \-\-shell shell
 .OP \-\-quiet
 .OP \-\-uid id
@@ -53,6 +54,7 @@ adduser, addgroup \- add or manipulate users or groups
 .OP \-\-home dir
 .OP \-\-ingroup group
 .OP \-\-no\-create\-home
+.OP \-\-no\-copy\-skel
 .OP \-\-shell shell
 .OP \-\-uid id
 .OP \-\-quiet
@@ -437,6 +439,12 @@ that some other mechanism will be responsible
 for initializing the new user's home directory.
 Valid modes: \fBadduser\fP, \fBadduser \-\-system\fP.
 .TP
+.B \-\-no\-copy\-skel
+Do not populate the home directory for the new user with
+files from \fI\%/etc/skel\fP.  If the home directory is
+newly created, it will be empty.
+Valid modes: \fBadduser\fP, \fBadduser \-\-system\fP.
+.TP
 .B \-\-quiet
 Synonymous to
 .B \-\-stdoutmsglevel=warn.



View it on GitLab: https://salsa.debian.org/debian/adduser/-/compare/905f130756005f9a5e29d91194ea729dbd57f5d4...2c48da2107ce79c71136d694f22eb46011a8bc5c

-- 
View it on GitLab: https://salsa.debian.org/debian/adduser/-/compare/905f130756005f9a5e29d91194ea729dbd57f5d4...2c48da2107ce79c71136d694f22eb46011a8bc5c
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-shadow-devel/attachments/20250914/c5c5d139/attachment-0001.htm>


More information about the Pkg-shadow-devel mailing list