summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2006-09-22 05:36:22 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2006-09-22 05:36:22 +0000
commitb9215aed63f2a0664f26096b18422209e64f3238 (patch)
tree084f3ece6408bc2c94a7a04c1bb22b81945ad61f /sys-libs
parentKeyword ~ppc. (diff)
downloadgentoo-2-b9215aed63f2a0664f26096b18422209e64f3238.tar.gz
gentoo-2-b9215aed63f2a0664f26096b18422209e64f3238.tar.bz2
gentoo-2-b9215aed63f2a0664f26096b18422209e64f3238.zip
On Gentoo, minimum gid/uid for non-system is 1000, not 500.
(Portage version: 2.1.2_pre1)
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/libuser/ChangeLog6
-rw-r--r--sys-libs/libuser/files/0.54.6-raise-minimum-ids-to-1000.patch114
-rw-r--r--sys-libs/libuser/libuser-0.54.6.ebuild10
3 files changed, 127 insertions, 3 deletions
diff --git a/sys-libs/libuser/ChangeLog b/sys-libs/libuser/ChangeLog
index 3acd2696d5b9..7b78ac17f4f2 100644
--- a/sys-libs/libuser/ChangeLog
+++ b/sys-libs/libuser/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-libs/libuser
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libuser/ChangeLog,v 1.2 2006/09/05 20:53:18 dberkholz Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libuser/ChangeLog,v 1.3 2006/09/22 05:36:22 dberkholz Exp $
+
+ 22 Sep 2006; Donnie Berkholz <dberkholz@gentoo.org>;
+ +files/0.54.6-raise-minimum-ids-to-1000.patch, libuser-0.54.6.ebuild:
+ On Gentoo, minimum gid/uid for non-system is 1000, not 500.
05 Sep 2006; Donnie Berkholz <dberkholz@gentoo.org>;
libuser-0.54.6.ebuild:
diff --git a/sys-libs/libuser/files/0.54.6-raise-minimum-ids-to-1000.patch b/sys-libs/libuser/files/0.54.6-raise-minimum-ids-to-1000.patch
new file mode 100644
index 000000000000..8dbb3f650600
--- /dev/null
+++ b/sys-libs/libuser/files/0.54.6-raise-minimum-ids-to-1000.patch
@@ -0,0 +1,114 @@
+Index: libuser.conf
+===================================================================
+RCS file: /usr/local/CVS/libuser/libuser.conf,v
+retrieving revision 1.1
+diff -u -b -B -r1.1 libuser.conf
+--- libuser.conf 10 Oct 2005 22:11:13 -0000 1.1
++++ libuser.conf 22 Sep 2006 05:27:53 -0000
+@@ -25,7 +25,7 @@
+
+ [userdefaults]
+ LU_USERNAME = %n
+-# LU_UIDNUMBER = 500
++# LU_UIDNUMBER = 1000
+ LU_GIDNUMBER = %u
+ # LU_USERPASSWORD = !!
+ # LU_GECOS = %n
+@@ -44,7 +44,7 @@
+
+ [groupdefaults]
+ LU_GROUPNAME = %n
+-# LU_GIDNUMBER = 500
++# LU_GIDNUMBER = 1000
+ # LU_GROUPPASSWORD = !!
+ # LU_MEMBERUID =
+ # LU_ADMINISTRATORUID =
+Index: apps/lgroupadd.1
+===================================================================
+RCS file: /usr/local/CVS/libuser/apps/lgroupadd.1,v
+retrieving revision 1.1
+diff -u -b -B -r1.1 lgroupadd.1
+--- apps/lgroupadd.1 15 Jan 2005 14:19:53 -0000 1.1
++++ apps/lgroupadd.1 22 Sep 2006 05:27:53 -0000
+@@ -45,7 +45,7 @@
+ The group is a system group.
+ Groups that are not marked as system groups
+ usually have automatically selected group IDs above a certain value
+-(500 by default).
++(1000 by default).
+ This information is also passed to the
+ .B libuser
+ backends.
+Index: apps/luseradd.1
+===================================================================
+RCS file: /usr/local/CVS/libuser/apps/luseradd.1,v
+retrieving revision 1.1
+diff -u -b -B -r1.1 luseradd.1
+--- apps/luseradd.1 15 Jan 2005 14:19:53 -0000 1.1
++++ apps/luseradd.1 22 Sep 2006 05:27:53 -0000
+@@ -104,7 +104,7 @@
+ The user is a system user.
+ Users that are not marked as system user
+ usually have automatically selected user IDs above a certain value
+-(500 by default).
++(1000 by default).
+ This information is also passed to the
+ .B libuser
+ backends.
+Index: docs/libuser.conf.5.in
+===================================================================
+RCS file: /usr/local/CVS/libuser/docs/libuser.conf.5.in,v
+retrieving revision 1.2
+diff -u -b -B -r1.2 libuser.conf.5.in
+--- docs/libuser.conf.5.in 21 Feb 2006 16:17:32 -0000 1.2
++++ docs/libuser.conf.5.in 22 Sep 2006 05:27:53 -0000
+@@ -183,7 +183,7 @@
+ .B LU_UIDNUMBER
+ A decimal number, the first allowed UID value for regular users (not system
+ users).
+-Default value is \fB500\fR.
++Default value is \fB1000\fR.
+
+ .P
+ All other variables have the same names as the attribute names from
+@@ -222,7 +222,7 @@
+ .B LU_GIDNUMBER
+ A decimal number, the first allowed GID value for regular groups (not system
+ groups).
+-Default value is \fB500\fR.
++Default value is \fB1000\fR.
+
+ .P
+ The other variables follow the same rules as in the
+Index: lib/user.c
+===================================================================
+RCS file: /usr/local/CVS/libuser/lib/user.c,v
+retrieving revision 1.81
+diff -u -b -B -r1.81 user.c
+--- lib/user.c 6 Mar 2006 03:02:52 -0000 1.81
++++ lib/user.c 22 Sep 2006 05:27:54 -0000
+@@ -33,7 +33,7 @@
+ #include "user_private.h"
+ #include "internal.h"
+
+-#define DEFAULT_ID 500
++#define DEFAULT_ID 1000
+
+ enum lu_dispatch_id {
+ uses_elevated_privileges = 0x0003,
+Index: python/admin.c
+===================================================================
+RCS file: /usr/local/CVS/libuser/python/admin.c,v
+retrieving revision 1.43
+diff -u -b -B -r1.43 admin.c
+--- python/admin.c 1 May 2006 04:51:21 -0000 1.43
++++ python/admin.c 22 Sep 2006 05:27:55 -0000
+@@ -1308,7 +1308,7 @@
+ char *keywords[] = { "start", NULL };
+ struct libuser_admin *me = (struct libuser_admin *) self;
+
+- PY_LONG_LONG start = 500;
++ PY_LONG_LONG start = 1000;
+
+ g_return_val_if_fail(self != NULL, NULL);
+
diff --git a/sys-libs/libuser/libuser-0.54.6.ebuild b/sys-libs/libuser/libuser-0.54.6.ebuild
index dfca0d4c085c..b368bd049cf0 100644
--- a/sys-libs/libuser/libuser-0.54.6.ebuild
+++ b/sys-libs/libuser/libuser-0.54.6.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libuser/libuser-0.54.6.ebuild,v 1.2 2006/09/05 20:53:18 dberkholz Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libuser/libuser-0.54.6.ebuild,v 1.3 2006/09/22 05:36:22 dberkholz Exp $
-inherit rpm
+inherit eutils rpm
# Revision of the RPM. Shouldn't affect us, as we're just grabbing the source
# tarball out of it
@@ -26,6 +26,12 @@ RDEPEND="=dev-libs/glib-2*
sasl? ( dev-libs/cyrus-sasl )"
DEPEND="${RDEPEND}"
+src_unpack() {
+ rpm_src_unpack
+ cd "${S}"
+ epatch "${FILESDIR}"/${PV}-raise-minimum-ids-to-1000.patch
+}
+
src_compile() {
econf \
$(use_with ldap) \