All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package: add hwloc 1.10.1
@ 2015-03-19  3:48 Steven Noonan
  2015-03-19  3:48 ` [Buildroot] [PATCH] package: add powertop 2.7 Steven Noonan
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: Steven Noonan @ 2015-03-19  3:48 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
---
 package/Config.in        |  1 +
 package/hwloc/Config.in  |  8 ++++++++
 package/hwloc/hwloc.hash |  2 ++
 package/hwloc/hwloc.mk   | 14 ++++++++++++++
 4 files changed, 25 insertions(+)
 create mode 100644 package/hwloc/Config.in
 create mode 100644 package/hwloc/hwloc.hash
 create mode 100644 package/hwloc/hwloc.mk

diff --git a/package/Config.in b/package/Config.in
index 96e373a..4ee489c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -331,6 +331,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	source "package/hdparm/Config.in"
 endif
 	source "package/hwdata/Config.in"
+	source "package/hwloc/Config.in"
 	source "package/i2c-tools/Config.in"
 	source "package/input-event-daemon/Config.in"
 	source "package/input-tools/Config.in"
diff --git a/package/hwloc/Config.in b/package/hwloc/Config.in
new file mode 100644
index 0000000..069bc8b
--- /dev/null
+++ b/package/hwloc/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_HWLOC
+	bool "hwloc"
+	select BR2_PACKAGE_LIBPCIACCESS
+	select BR2_PACKAGE_NUMACTL
+	help
+	  Portable Hrdware Locality
+
+	  http://www.open-mpi.org/projects/hwloc/
diff --git a/package/hwloc/hwloc.hash b/package/hwloc/hwloc.hash
new file mode 100644
index 0000000..8d25904
--- /dev/null
+++ b/package/hwloc/hwloc.hash
@@ -0,0 +1,2 @@
+# From http://www.open-mpi.org/software/hwloc/v1.10/downloads/hwloc-1.10.1.tar.bz2
+sha1	76291124e4638b2fbd4deb4cc3cd680e153077b5	hwloc-1.10.1.tar.bz2
diff --git a/package/hwloc/hwloc.mk b/package/hwloc/hwloc.mk
new file mode 100644
index 0000000..ced3627
--- /dev/null
+++ b/package/hwloc/hwloc.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# hwloc
+#
+################################################################################
+
+HWLOC_VERSION = 1.10.1
+HWLOC_SOURCE = hwloc-$(HWLOC_VERSION).tar.bz2
+HWLOC_SITE = http://www.open-mpi.org/software/hwloc/v1.10/downloads
+HWLOC_DEPENDENCIES = libpciaccess numactl
+HWLOC_LICENSE = BSD-3c
+HWLOC_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
-- 
2.3.3

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package: add powertop 2.7
  2015-03-19  3:48 [Buildroot] [PATCH] package: add hwloc 1.10.1 Steven Noonan
@ 2015-03-19  3:48 ` Steven Noonan
  2015-03-19  5:31   ` Baruch Siach
  2015-03-19  3:48 ` [Buildroot] [PATCH] package: add shadow 4.2.1 Steven Noonan
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 19+ messages in thread
From: Steven Noonan @ 2015-03-19  3:48 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
---
 package/Config.in                        |  1 +
 package/powertop/Config.in               |  9 +++++++++
 package/powertop/powertop-autotune.patch |  9 +++++++++
 package/powertop/powertop.hash           |  2 ++
 package/powertop/powertop.mk             | 14 ++++++++++++++
 5 files changed, 35 insertions(+)
 create mode 100644 package/powertop/Config.in
 create mode 100644 package/powertop/powertop-autotune.patch
 create mode 100644 package/powertop/powertop.hash
 create mode 100644 package/powertop/powertop.mk

diff --git a/package/Config.in b/package/Config.in
index 4ee489c..c938326 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -365,6 +365,7 @@ endif
 	source "package/pciutils/Config.in"
 	source "package/picocom/Config.in"
 	source "package/pifmrds/Config.in"
+	source "package/powertop/Config.in"
 	source "package/pps-tools/Config.in"
 	source "package/read-edid/Config.in"
 	source "package/rng-tools/Config.in"
diff --git a/package/powertop/Config.in b/package/powertop/Config.in
new file mode 100644
index 0000000..0e83c8f
--- /dev/null
+++ b/package/powertop/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_POWERTOP
+	bool "powertop"
+	select BR2_PACKAGE_NCURSES
+	select BR2_PACKAGE_PCIUTILS
+	select BR2_PACKAGE_LIBNL
+	help
+	  A tool to diagnose issues with power consumption and power management
+
+	  https://01.org/powertop/
diff --git a/package/powertop/powertop-autotune.patch b/package/powertop/powertop-autotune.patch
new file mode 100644
index 0000000..23d6433
--- /dev/null
+++ b/package/powertop/powertop-autotune.patch
@@ -0,0 +1,9 @@
+--- a/src/devices/devfreq.cpp
++++ b/src/devices/devfreq.cpp
+@@ -247,6 +247,7 @@ void create_all_devfreq_devices(void)
+		fprintf(stderr, "Devfreq not enabled\n");
+		is_enabled = false;
+		closedir(dir);
++		dir = NULL;
+		return;
+	}
diff --git a/package/powertop/powertop.hash b/package/powertop/powertop.hash
new file mode 100644
index 0000000..b26ae80
--- /dev/null
+++ b/package/powertop/powertop.hash
@@ -0,0 +1,2 @@
+# From https://01.org/sites/default/files/downloads/powertop/powertop-2.7.tar.gz
+sha256	8d4b1490e2baad4467c0ded3c423db4472dcbf7b2dd8f8f2a928f54047c678ca	powertop-2.7.tar.gz
diff --git a/package/powertop/powertop.mk b/package/powertop/powertop.mk
new file mode 100644
index 0000000..337688a
--- /dev/null
+++ b/package/powertop/powertop.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# powertop
+#
+################################################################################
+
+POWERTOP_VERSION = 2.7
+POWERTOP_SOURCE = powertop-$(POWERTOP_VERSION).tar.gz
+POWERTOP_SITE = https://01.org/sites/default/files/downloads/powertop/
+POWERTOP_DEPENDENCIES = pciutils ncurses libnl
+POWERTOP_LICENSE = GPLv2
+POWERTOP_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
-- 
2.3.3

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package: add shadow 4.2.1
  2015-03-19  3:48 [Buildroot] [PATCH] package: add hwloc 1.10.1 Steven Noonan
  2015-03-19  3:48 ` [Buildroot] [PATCH] package: add powertop 2.7 Steven Noonan
@ 2015-03-19  3:48 ` Steven Noonan
  2015-03-19 13:07   ` Ryan Barnett
  2015-07-18 20:11   ` Thomas Petazzoni
  2015-03-19  3:48 ` [Buildroot] [PATCH] package/numactl: upgrade to 2.0.10 Steven Noonan
                   ` (3 subsequent siblings)
  5 siblings, 2 replies; 19+ messages in thread
From: Steven Noonan @ 2015-03-19  3:48 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
---
 package/Config.in                                 |   1 +
 package/shadow/Config.in                          |  10 +
 package/shadow/chgpasswd.pam                      |   4 +
 package/shadow/chpasswd.pam                       |   6 +
 package/shadow/newusers.pam                       |   6 +
 package/shadow/passwd.pam                         |   4 +
 package/shadow/remove-util-linux-conflicts.patch  | 642 ++++++++++++++++++++++
 package/shadow/shadow-4.2.1-subordinate-ids.patch |  34 ++
 package/shadow/shadow-strncpy-usage.patch         |  25 +
 package/shadow/shadow.hash                        |   1 +
 package/shadow/shadow.mk                          |  43 ++
 package/shadow/xstrdup.patch                      |   9 +
 12 files changed, 785 insertions(+)
 create mode 100644 package/shadow/Config.in
 create mode 100644 package/shadow/chgpasswd.pam
 create mode 100644 package/shadow/chpasswd.pam
 create mode 100644 package/shadow/newusers.pam
 create mode 100644 package/shadow/passwd.pam
 create mode 100644 package/shadow/remove-util-linux-conflicts.patch
 create mode 100644 package/shadow/shadow-4.2.1-subordinate-ids.patch
 create mode 100644 package/shadow/shadow-strncpy-usage.patch
 create mode 100644 package/shadow/shadow.hash
 create mode 100644 package/shadow/shadow.mk
 create mode 100644 package/shadow/xstrdup.patch

diff --git a/package/Config.in b/package/Config.in
index c938326..c557010 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1341,6 +1341,7 @@ endif
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	source "package/rsyslog/Config.in"
 endif
+	source "package/shadow/Config.in"
 	source "package/smack/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	source "package/start-stop-daemon/Config.in"
diff --git a/package/shadow/Config.in b/package/shadow/Config.in
new file mode 100644
index 0000000..0c3d6e1
--- /dev/null
+++ b/package/shadow/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_SHADOW
+	bool "shadow"
+	select BR2_PACKAGE_ACL
+	select BR2_PACKAGE_LINUX_PAM
+	select BR2_PACKAGE_UTIL_LINUX
+	help
+	  Password and account management tool suite with support for shadow files
+	  and PAM
+
+	  http://pkg-shadow.alioth.debian.org/
diff --git a/package/shadow/chgpasswd.pam b/package/shadow/chgpasswd.pam
new file mode 100644
index 0000000..8f49f5c
--- /dev/null
+++ b/package/shadow/chgpasswd.pam
@@ -0,0 +1,4 @@
+#%PAM-1.0
+auth		sufficient	pam_rootok.so
+account		required	pam_permit.so
+password	include		system-auth
diff --git a/package/shadow/chpasswd.pam b/package/shadow/chpasswd.pam
new file mode 100644
index 0000000..5d44798
--- /dev/null
+++ b/package/shadow/chpasswd.pam
@@ -0,0 +1,6 @@
+#%PAM-1.0
+auth		sufficient	pam_rootok.so
+auth		required	pam_unix.so
+account		required	pam_unix.so
+session		required	pam_unix.so
+password 	required 	pam_unix.so sha512 shadow
diff --git a/package/shadow/newusers.pam b/package/shadow/newusers.pam
new file mode 100644
index 0000000..5d44798
--- /dev/null
+++ b/package/shadow/newusers.pam
@@ -0,0 +1,6 @@
+#%PAM-1.0
+auth		sufficient	pam_rootok.so
+auth		required	pam_unix.so
+account		required	pam_unix.so
+session		required	pam_unix.so
+password 	required 	pam_unix.so sha512 shadow
diff --git a/package/shadow/passwd.pam b/package/shadow/passwd.pam
new file mode 100644
index 0000000..ab56da4
--- /dev/null
+++ b/package/shadow/passwd.pam
@@ -0,0 +1,4 @@
+#%PAM-1.0
+#password	required	pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
+#password	required	pam_unix.so sha512 shadow use_authtok
+password	required	pam_unix.so sha512 shadow nullok
diff --git a/package/shadow/remove-util-linux-conflicts.patch b/package/shadow/remove-util-linux-conflicts.patch
new file mode 100644
index 0000000..fce9639
--- /dev/null
+++ b/package/shadow/remove-util-linux-conflicts.patch
@@ -0,0 +1,642 @@
+diff --git a/etc/pam.d/Makefile.am b/etc/pam.d/Makefile.am
+index d967eb9..ab01cbd 100644
+--- a/etc/pam.d/Makefile.am
++++ b/etc/pam.d/Makefile.am
+@@ -2,12 +2,8 @@
+ # and also cooperate to make a distribution for `make dist'
+
+ pamd_files = \
+-	chfn \
+-	chsh \
+	groupmems \
+-	login \
+-	passwd \
+-	su
++	passwd
+
+ pamd_acct_tools_files = \
+	chage \
+diff --git a/man/Makefile.am b/man/Makefile.am
+index 307eab5..503e45f 100644
+--- a/man/Makefile.am
++++ b/man/Makefile.am
+@@ -8,10 +8,8 @@ endif
+
+ man_MANS = \
+	man1/chage.1 \
+-	man1/chfn.1 \
+	man8/chgpasswd.8 \
+	man8/chpasswd.8 \
+-	man1/chsh.1 \
+	man1/expiry.1 \
+	man5/faillog.5 \
+	man8/faillog.8 \
+@@ -27,12 +25,8 @@ man_MANS = \
+	man8/grpunconv.8 \
+	man5/gshadow.5 \
+	man8/lastlog.8 \
+-	man1/login.1 \
+	man5/login.defs.5 \
+-	man8/logoutd.8 \
+-	man1/newgrp.1 \
+	man8/newusers.8 \
+-	man8/nologin.8 \
+	man1/passwd.1 \
+	man5/passwd.5 \
+	man8/pwck.8 \
+@@ -41,13 +35,10 @@ man_MANS = \
+	man1/sg.1 \
+	man3/shadow.3 \
+	man5/shadow.5 \
+-	man1/su.1 \
+	man5/suauth.5 \
+	man8/useradd.8 \
+	man8/userdel.8 \
+-	man8/usermod.8 \
+-	man8/vigr.8 \
+-	man8/vipw.8
++	man8/usermod.8
+
+ man_nopam = \
+	man5/limits.5 \
+@@ -70,10 +61,8 @@ endif
+
+ man_XMANS = \
+	chage.1.xml \
+-	chfn.1.xml \
+	chgpasswd.8.xml \
+	chpasswd.8.xml \
+-	chsh.1.xml \
+	expiry.1.xml \
+	faillog.5.xml \
+	faillog.8.xml \
+@@ -87,15 +76,11 @@ man_XMANS = \
+	gshadow.5.xml \
+	lastlog.8.xml \
+	limits.5.xml \
+-	login.1.xml \
+	login.access.5.xml \
+	login.defs.5.xml \
+-	logoutd.8.xml \
+	newgidmap.1.xml \
+-	newgrp.1.xml \
+	newuidmap.1.xml \
+	newusers.8.xml \
+-	nologin.8.xml \
+	passwd.1.xml \
+	passwd.5.xml \
+	porttime.5.xml \
+@@ -104,14 +89,12 @@ man_XMANS = \
+	shadow.3.xml \
+	shadow.5.xml \
+	sg.1.xml \
+-	su.1.xml \
+	suauth.5.xml \
+	subgid.5.xml \
+	subuid.5.xml \
+	useradd.8.xml \
+	userdel.8.xml \
+-	usermod.8.xml \
+-	vipw.8.xml
++	usermod.8.xml
+
+ login_defs_v = \
+	CHFN_AUTH.xml \
+diff --git a/man/cs/Makefile.am b/man/cs/Makefile.am
+index 3b2be0c..50290f4 100644
+--- a/man/cs/Makefile.am
++++ b/man/cs/Makefile.am
+@@ -13,14 +13,10 @@ man_MANS = \
+	man8/grpck.8 \
+	man5/gshadow.5 \
+	man8/lastlog.8 \
+-	man8/nologin.8 \
+	man5/passwd.5 \
+-	man5/shadow.5 \
+-	man1/su.1 \
+-	man8/vipw.8
++	man5/shadow.5
+
+ EXTRA_DIST = $(man_MANS) \
+	man1/id.1 \
+-	man8/groupmems.8 \
+-	man8/logoutd.8
++	man8/groupmems.8
+
+diff --git a/man/da/Makefile.am b/man/da/Makefile.am
+index a3b0922..e45bef6 100644
+--- a/man/da/Makefile.am
++++ b/man/da/Makefile.am
+@@ -3,16 +3,10 @@ mandir = @mandir@/da
+
+ # 2012.01.28 - activate manpages with more than 50% translated messages
+ man_MANS = \
+-	man1/chfn.1 \
+	man8/groupdel.8 \
+	man1/groups.1 \
+	man5/gshadow.5 \
+-	man8/logoutd.8 \
+-	man1/newgrp.1 \
+-	man8/nologin.8 \
+-	man1/sg.1 \
+-	man8/vigr.8 \
+-	man8/vipw.8
++	man1/sg.1
+
+ man_nopam =
+
+diff --git a/man/de/Makefile.am b/man/de/Makefile.am
+index 3cd302e..dee3e2a 100644
+--- a/man/de/Makefile.am
++++ b/man/de/Makefile.am
+@@ -3,10 +3,8 @@ mandir = @mandir@/de
+
+ man_MANS = \
+	man1/chage.1 \
+-	man1/chfn.1 \
+	man8/chgpasswd.8 \
+	man8/chpasswd.8 \
+-	man1/chsh.1 \
+	man1/expiry.1 \
+	man5/faillog.5 \
+	man8/faillog.8 \
+@@ -22,12 +20,8 @@ man_MANS = \
+	man8/grpunconv.8 \
+	man5/gshadow.5 \
+	man8/lastlog.8 \
+-	man1/login.1 \
+	man5/login.defs.5 \
+-	man8/logoutd.8 \
+-	man1/newgrp.1 \
+	man8/newusers.8 \
+-	man8/nologin.8 \
+	man1/passwd.1 \
+	man5/passwd.5 \
+	man8/pwck.8 \
+@@ -36,13 +30,10 @@ man_MANS = \
+	man1/sg.1 \
+	man3/shadow.3 \
+	man5/shadow.5 \
+-	man1/su.1 \
+	man5/suauth.5 \
+	man8/useradd.8 \
+	man8/userdel.8 \
+-	man8/usermod.8 \
+-	man8/vigr.8 \
+-	man8/vipw.8
++	man8/usermod.8
+
+ man_nopam = \
+	man5/limits.5 \
+diff --git a/man/es/Makefile.am b/man/es/Makefile.am
+index 721dc0d..981b5b1 100644
+--- a/man/es/Makefile.am
++++ b/man/es/Makefile.am
+@@ -6,12 +6,7 @@ man_MANS =
+ # These Spanish manpages are outdated.
+ # Please contact pkg-shadow-devel at lists.alioth.debian.org if you wish to
+ # provide updates.
+-#	man1/login.1 \
+-#	man1/newgrp.1 \
+ #	man1/passwd.1 \
+-#	man5/passwd.5 \
+-#	man1/su.1 \
+-#	man8/vigr.8 \
+-#	man8/vipw.8
++#	man5/passwd.5
+
+ EXTRA_DIST = $(man_MANS)
+diff --git a/man/fi/Makefile.am b/man/fi/Makefile.am
+index 26a1a84..f02b92f 100644
+--- a/man/fi/Makefile.am
++++ b/man/fi/Makefile.am
+@@ -1,10 +1,7 @@
+
+ mandir = @mandir@/fi
+
+-man_MANS = \
+-	man1/chfn.1 \
+-	man1/chsh.1 \
+-	man1/su.1
++man_MANS =
+
+ # Outdated manpages
+ #	passwd.1 (https://bugs.launchpad.net/ubuntu/+bug/384024)
+diff --git a/man/fr/Makefile.am b/man/fr/Makefile.am
+index 230d212..1955e94 100644
+--- a/man/fr/Makefile.am
++++ b/man/fr/Makefile.am
+@@ -3,10 +3,8 @@ mandir = @mandir@/fr
+
+ man_MANS = \
+	man1/chage.1 \
+-	man1/chfn.1 \
+	man8/chgpasswd.8 \
+	man8/chpasswd.8 \
+-	man1/chsh.1 \
+	man1/expiry.1 \
+	man5/faillog.5 \
+	man8/faillog.8 \
+@@ -22,12 +20,8 @@ man_MANS = \
+	man8/grpunconv.8 \
+	man5/gshadow.5 \
+	man8/lastlog.8 \
+-	man1/login.1 \
+	man5/login.defs.5 \
+-	man8/logoutd.8 \
+-	man1/newgrp.1 \
+	man8/newusers.8 \
+-	man8/nologin.8 \
+	man1/passwd.1 \
+	man5/passwd.5 \
+	man8/pwck.8 \
+@@ -36,13 +30,10 @@ man_MANS = \
+	man1/sg.1 \
+	man3/shadow.3 \
+	man5/shadow.5 \
+-	man1/su.1 \
+	man5/suauth.5 \
+	man8/useradd.8 \
+	man8/userdel.8 \
+-	man8/usermod.8 \
+-	man8/vigr.8 \
+-	man8/vipw.8
++	man8/usermod.8
+
+ man_nopam = \
+	man5/limits.5 \
+diff --git a/man/hu/Makefile.am b/man/hu/Makefile.am
+index e659aef..ae80da4 100644
+--- a/man/hu/Makefile.am
++++ b/man/hu/Makefile.am
+@@ -2,16 +2,12 @@
+ mandir = @mandir@/hu
+
+ man_MANS = \
+-	man1/chsh.1 \
+	man1/gpasswd.1 \
+	man1/groups.1 \
+	man8/lastlog.8 \
+-	man1/login.1 \
+-	man1/newgrp.1 \
+	man1/passwd.1 \
+	man5/passwd.5 \
+-	man1/sg.1 \
+-	man1/su.1
++	man1/sg.1
+
+ EXTRA_DIST = $(man_MANS)
+
+diff --git a/man/id/Makefile.am b/man/id/Makefile.am
+index 21f3dbe..6d10b93 100644
+--- a/man/id/Makefile.am
++++ b/man/id/Makefile.am
+@@ -2,8 +2,6 @@
+ mandir = @mandir@/id
+
+ man_MANS = \
+-	man1/chsh.1 \
+-	man1/login.1 \
+	man8/useradd.8
+
+ EXTRA_DIST = $(man_MANS)
+diff --git a/man/it/Makefile.am b/man/it/Makefile.am
+index 94460aa..ecf5bd1 100644
+--- a/man/it/Makefile.am
++++ b/man/it/Makefile.am
+@@ -3,10 +3,8 @@ mandir = @mandir@/it
+
+ man_MANS = \
+	man1/chage.1 \
+-	man1/chfn.1 \
+	man8/chgpasswd.8 \
+	man8/chpasswd.8 \
+-	man1/chsh.1 \
+	man1/expiry.1 \
+	man5/faillog.5 \
+	man8/faillog.8 \
+@@ -22,12 +20,8 @@ man_MANS = \
+	man8/grpunconv.8 \
+	man5/gshadow.5 \
+	man8/lastlog.8 \
+-	man1/login.1 \
+	man5/login.defs.5 \
+-	man8/logoutd.8 \
+-	man1/newgrp.1 \
+	man8/newusers.8 \
+-	man8/nologin.8 \
+	man1/passwd.1 \
+	man5/passwd.5 \
+	man8/pwck.8 \
+@@ -36,13 +30,10 @@ man_MANS = \
+	man1/sg.1 \
+	man3/shadow.3 \
+	man5/shadow.5 \
+-	man1/su.1 \
+	man5/suauth.5 \
+	man8/useradd.8 \
+	man8/userdel.8 \
+-	man8/usermod.8 \
+-	man8/vigr.8 \
+-	man8/vipw.8
++	man8/usermod.8
+
+ man_nopam = \
+	man5/limits.5 \
+diff --git a/man/ja/Makefile.am b/man/ja/Makefile.am
+index ffb75a9..b88c490 100644
+--- a/man/ja/Makefile.am
++++ b/man/ja/Makefile.am
+@@ -3,9 +3,7 @@ mandir = @mandir@/ja
+
+ man_MANS = \
+	man1/chage.1 \
+-	man1/chfn.1 \
+	man8/chpasswd.8 \
+-	man1/chsh.1 \
+	man1/expiry.1 \
+	man5/faillog.5 \
+	man8/faillog.8 \
+@@ -18,10 +16,7 @@ man_MANS = \
+	man8/grpconv.8 \
+	man8/grpunconv.8 \
+	man8/lastlog.8 \
+-	man1/login.1 \
+	man5/login.defs.5 \
+-	man8/logoutd.8 \
+-	man1/newgrp.1 \
+	man8/newusers.8 \
+	man1/passwd.1 \
+	man5/passwd.5 \
+@@ -30,13 +25,10 @@ man_MANS = \
+	man8/pwunconv.8 \
+	man1/sg.1 \
+	man5/shadow.5 \
+-	man1/su.1 \
+	man5/suauth.5 \
+	man8/useradd.8 \
+	man8/userdel.8 \
+-	man8/usermod.8 \
+-	man8/vigr.8 \
+-	man8/vipw.8
++	man8/usermod.8
+
+ man_nopam = \
+	man5/limits.5 \
+diff --git a/man/ko/Makefile.am b/man/ko/Makefile.am
+index c269f0b..fb4086c 100644
+--- a/man/ko/Makefile.am
++++ b/man/ko/Makefile.am
+@@ -2,15 +2,7 @@
+ mandir = @mandir@/ko
+
+ man_MANS = \
+-	man1/chfn.1 \
+-	man1/chsh.1 \
+	man1/groups.1 \
+-	man1/login.1 \
+-	man5/passwd.5 \
+-	man1/su.1 \
+-	man8/vigr.8 \
+-	man8/vipw.8
+-# newgrp.1 must be updated
+-#	newgrp.1
++	man5/passwd.5
+
+ EXTRA_DIST = $(man_MANS)
+diff --git a/man/pl/Makefile.am b/man/pl/Makefile.am
+index 724d25f..fa6675b 100644
+--- a/man/pl/Makefile.am
++++ b/man/pl/Makefile.am
+@@ -4,7 +4,6 @@ mandir = @mandir@/pl
+ # 2012.01.28 - activate manpages with more than 50% translated messages
+ man_MANS = \
+	man1/chage.1 \
+-	man1/chsh.1 \
+	man1/expiry.1 \
+	man5/faillog.5 \
+	man8/faillog.8 \
+@@ -16,14 +15,10 @@ man_MANS = \
+	man1/groups.1 \
+	man8/grpck.8 \
+	man8/lastlog.8 \
+-	man8/logoutd.8 \
+-	man1/newgrp.1 \
+	man1/sg.1 \
+	man3/shadow.3 \
+	man8/userdel.8 \
+-	man8/usermod.8 \
+-	man8/vigr.8 \
+-	man8/vipw.8
++	man8/usermod.8
+
+ man_nopam = \
+	man5/porttime.5
+diff --git a/man/ru/Makefile.am b/man/ru/Makefile.am
+index 8a776a8..29e1b84 100644
+--- a/man/ru/Makefile.am
++++ b/man/ru/Makefile.am
+@@ -3,10 +3,8 @@ mandir = @mandir@/ru
+
+ man_MANS = \
+	man1/chage.1 \
+-	man1/chfn.1 \
+	man8/chgpasswd.8 \
+	man8/chpasswd.8 \
+-	man1/chsh.1 \
+	man1/expiry.1 \
+	man5/faillog.5 \
+	man8/faillog.8 \
+@@ -22,12 +20,8 @@ man_MANS = \
+	man8/grpunconv.8 \
+	man5/gshadow.5 \
+	man8/lastlog.8 \
+-	man1/login.1 \
+	man5/login.defs.5 \
+-	man8/logoutd.8 \
+-	man1/newgrp.1 \
+	man8/newusers.8 \
+-	man8/nologin.8 \
+	man1/passwd.1 \
+	man5/passwd.5 \
+	man8/pwck.8 \
+@@ -36,13 +30,10 @@ man_MANS = \
+	man1/sg.1 \
+	man3/shadow.3 \
+	man5/shadow.5 \
+-	man1/su.1 \
+	man5/suauth.5 \
+	man8/useradd.8 \
+	man8/userdel.8 \
+-	man8/usermod.8 \
+-	man8/vigr.8 \
+-	man8/vipw.8
++	man8/usermod.8
+
+ man_nopam = \
+	man5/limits.5 \
+diff --git a/man/sv/Makefile.am b/man/sv/Makefile.am
+index e64b7bc..fbb2a71 100644
+--- a/man/sv/Makefile.am
++++ b/man/sv/Makefile.am
+@@ -3,7 +3,6 @@ mandir = @mandir@/sv
+ # 2012.01.28 - activate manpages with more than 50% translated messages
+ man_MANS = \
+	man1/chage.1 \
+-	man1/chsh.1 \
+	man1/expiry.1 \
+	man5/faillog.5 \
+	man8/faillog.8 \
+@@ -16,18 +15,13 @@ man_MANS = \
+	man8/grpck.8 \
+	man5/gshadow.5 \
+	man8/lastlog.8 \
+-	man8/logoutd.8 \
+-	man1/newgrp.1 \
+-	man8/nologin.8 \
+	man1/passwd.1 \
+	man5/passwd.5 \
+	man8/pwck.8 \
+	man1/sg.1 \
+	man3/shadow.3 \
+	man5/suauth.5 \
+-	man8/userdel.8 \
+-	man8/vigr.8 \
+-	man8/vipw.8
++	man8/userdel.8
+
+ man_nopam = \
+	man5/limits.5 \
+diff --git a/man/tr/Makefile.am b/man/tr/Makefile.am
+index 8d8b916..4fe3632 100644
+--- a/man/tr/Makefile.am
++++ b/man/tr/Makefile.am
+@@ -2,15 +2,12 @@ mandir = @mandir@/tr
+
+ man_MANS = \
+	man1/chage.1 \
+-	man1/chfn.1 \
+	man8/groupadd.8 \
+	man8/groupdel.8 \
+	man8/groupmod.8 \
+-	man1/login.1 \
+	man1/passwd.1 \
+	man5/passwd.5 \
+	man5/shadow.5 \
+-	man1/su.1 \
+	man8/useradd.8 \
+	man8/userdel.8 \
+	man8/usermod.8
+diff --git a/man/zh_CN/Makefile.am b/man/zh_CN/Makefile.am
+index e9d8f2c..c2e6cdf 100644
+--- a/man/zh_CN/Makefile.am
++++ b/man/zh_CN/Makefile.am
+@@ -3,10 +3,8 @@ mandir = @mandir@/zh_CN
+
+ man_MANS = \
+	man1/chage.1 \
+-	man1/chfn.1 \
+	man8/chgpasswd.8 \
+	man8/chpasswd.8 \
+-	man1/chsh.1 \
+	man1/expiry.1 \
+	man5/faillog.5 \
+	man8/faillog.8 \
+@@ -22,12 +20,8 @@ man_MANS = \
+	man8/grpunconv.8 \
+	man5/gshadow.5 \
+	man8/lastlog.8 \
+-	man1/login.1 \
+	man5/login.defs.5 \
+-	man8/logoutd.8 \
+-	man1/newgrp.1 \
+	man8/newusers.8 \
+-	man8/nologin.8 \
+	man1/passwd.1 \
+	man5/passwd.5 \
+	man8/pwck.8 \
+@@ -36,13 +30,10 @@ man_MANS = \
+	man1/sg.1 \
+	man3/shadow.3 \
+	man5/shadow.5 \
+-	man1/su.1 \
+	man5/suauth.5 \
+	man8/useradd.8 \
+	man8/userdel.8 \
+-	man8/usermod.8 \
+-	man8/vigr.8 \
+-	man8/vipw.8
++	man8/usermod.8
+
+ man_nopam = \
+	man5/limits.5 \
+diff --git a/man/zh_TW/Makefile.am b/man/zh_TW/Makefile.am
+index c36ed2c..26696b6 100644
+--- a/man/zh_TW/Makefile.am
++++ b/man/zh_TW/Makefile.am
+@@ -2,15 +2,11 @@
+ mandir = @mandir@/zh_TW
+
+ man_MANS = \
+-	man1/chfn.1 \
+-	man1/chsh.1 \
+	man8/chpasswd.8 \
+-	man1/newgrp.1 \
+	man8/groupadd.8 \
+	man8/groupdel.8 \
+	man8/groupmod.8 \
+	man5/passwd.5 \
+-	man1/su.1 \
+	man8/useradd.8 \
+	man8/userdel.8 \
+	man8/usermod.8
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 25e288d..bbbc92d 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -22,9 +22,9 @@ INCLUDES = \
+ # and installation would be much simpler (just two directories,
+ # $prefix/bin and $prefix/sbin, no install-data hacks...)
+
+-bin_PROGRAMS   = groups login su
+-sbin_PROGRAMS  = nologin
+-ubin_PROGRAMS  = faillog lastlog chage chfn chsh expiry gpasswd newgrp passwd
++bin_PROGRAMS   = groups
++sbin_PROGRAMS  =
++ubin_PROGRAMS  = faillog lastlog chage expiry gpasswd newgrp passwd
+ if ENABLE_SUBIDS
+ ubin_PROGRAMS += newgidmap newuidmap
+ endif
+@@ -38,21 +38,19 @@ usbin_PROGRAMS = \
+	grpck \
+	grpconv \
+	grpunconv \
+-	logoutd \
+	newusers \
+	pwck \
+	pwconv \
+	pwunconv \
+	useradd \
+	userdel \
+-	usermod \
+-	vipw
++	usermod
+
+ # id and groups are from gnu, sulogin from sysvinit
+ noinst_PROGRAMS = id sulogin
+
+-suidbins       = su
+-suidubins      = chage chfn chsh expiry gpasswd newgrp passwd newuidmap newgidmap
++suidbins       =
++suidubins      = chage expiry gpasswd newgrp passwd newuidmap newgidmap
+ if ACCT_TOOLS_SETUID
+	suidubins += chage chgpasswd chpasswd groupadd groupdel groupmod newusers useradd userdel usermod
+ endif
+@@ -119,7 +117,6 @@ vipw_LDADD     = $(LDADD) $(LIBSELINUX)
+ install-am: all-am
+	$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+	ln -sf newgrp	$(DESTDIR)$(ubindir)/sg
+-	ln -sf vipw	$(DESTDIR)$(usbindir)/vigr
+	for i in $(suidbins); do \
+		chmod -f $(suidperms) $(DESTDIR)$(bindir)/$$i; \
+	done
diff --git a/package/shadow/shadow-4.2.1-subordinate-ids.patch b/package/shadow/shadow-4.2.1-subordinate-ids.patch
new file mode 100644
index 0000000..4ed6bb5
--- /dev/null
+++ b/package/shadow/shadow-4.2.1-subordinate-ids.patch
@@ -0,0 +1,34 @@
+diff --git a/configure.in b/configure.in
+index a55f125..26bee47 100644
+--- a/configure.in
++++ b/configure.in
+@@ -331,28 +331,8 @@ if test "$enable_man" = "yes"; then
+ fi
+ AM_CONDITIONAL(ENABLE_REGENERATE_MAN, test "x$enable_man" != "xno")
+
+-if test "$enable_subids" != "no"; then
+-	dnl
+-	dnl FIXME: check if 32 bit UIDs/GIDs are supported by libc
+-	dnl
+-	AC_RUN_IFELSE([AC_LANG_SOURCE([
+-#include <sys/types.h>
+-int main(void) {
+-	uid_t u;
+-	gid_t g;
+-	return (sizeof u < 4) || (sizeof g < 4);
+-}
+-	])], [id32bit="yes"], [id32bit="no"])
+-
+-	if test "x$id32bit" = "xyes"; then
+-		AC_DEFINE(ENABLE_SUBIDS, 1, [Define to support the subordinate IDs.])
+-		enable_subids="yes"
+-	else
+-		if test "x$enable_subids" = "xyes"; then
+-			AC_MSG_ERROR([Cannot enable support the subordinate IDs on systems where gid_t or uid_t has less than 32 bits])
+-		fi
+-		enable_subids="no"
+-	fi
++if test "x$enable_subids" != "xno"; then
++	AC_DEFINE(ENABLE_SUBIDS, 1, [Define to support the subordinate IDs.])
+ fi
+ AM_CONDITIONAL(ENABLE_SUBIDS, test "x$enable_subids" != "xno")
diff --git a/package/shadow/shadow-strncpy-usage.patch b/package/shadow/shadow-strncpy-usage.patch
new file mode 100644
index 0000000..dedb078
--- /dev/null
+++ b/package/shadow/shadow-strncpy-usage.patch
@@ -0,0 +1,25 @@
+diff -u shadow-4.1.5/src/usermod.c.orig shadow-4.1.5/src/usermod.c
+--- shadow-4.1.5/src/usermod.c.orig	2012-02-13 08:19:43.792146449 -0500
++++ shadow-4.1.5/src/usermod.c	2012-02-13 08:21:19.375114500 -0500
+@@ -182,7 +182,7 @@
+	struct tm *tp;
+
+	if (date < 0) {
+-		strncpy (buf, "never", maxsize);
++		strncpy (buf, "never", maxsize - 1);
+	} else {
+		time_t t = (time_t) date;
+		tp = gmtime (&t);
+diff -u shadow-4.1.5/src/login.c.orig shadow-4.1.5/src/login.c
+--- shadow-4.1.5/src/login.c.orig	2012-02-13 08:19:50.951994454 -0500
++++ shadow-4.1.5/src/login.c	2012-02-13 08:21:04.490430937 -0500
+@@ -752,7 +752,8 @@
+			          _("%s login: "), hostn);
+		} else {
+			strncpy (loginprompt, _("login: "),
+-			         sizeof (loginprompt));
++			         sizeof (loginprompt) - 1);
++			loginprompt[sizeof (loginprompt) - 1] = '\0';
+		}
+
+		retcode = pam_set_item (pamh, PAM_USER_PROMPT, loginprompt);
diff --git a/package/shadow/shadow.hash b/package/shadow/shadow.hash
new file mode 100644
index 0000000..bab8583
--- /dev/null
+++ b/package/shadow/shadow.hash
@@ -0,0 +1 @@
+sha1	0917cbadd4ce0c7c36670e5ecd37bbed92e6d82d	shadow-4.2.1.tar.xz
diff --git a/package/shadow/shadow.mk b/package/shadow/shadow.mk
new file mode 100644
index 0000000..e2fd209
--- /dev/null
+++ b/package/shadow/shadow.mk
@@ -0,0 +1,43 @@
+################################################################################
+#
+# shadow
+#
+################################################################################
+
+SHADOW_VERSION = 4.2.1
+SHADOW_SITE = http://pkg-shadow.alioth.debian.org/releases/
+SHADOW_SOURCE = shadow-$(SHADOW_VERSION).tar.xz
+SHADOW_LICENSE = BSD-3c
+SHADOW_LICENSE_FILES = LICENCE
+SHADOW_AUTORECONF = YES
+SHADOW_CONF_OPTS = \
+	--sysconfdir=/etc \
+	--enable-subordinate-ids=yes \
+	--with-libpam \
+	--with-group-name-max-length=32 \
+	--without-selinux
+SHADOW_DEPENDENCIES = acl linux-pam util-linux
+
+define SHADOW_INSTALL_PAMFILES
+	$(INSTALL) -m 0644 package/shadow/chgpasswd.pam \
+		$(TARGET_DIR)/etc/pam.d/chgpasswd
+	$(INSTALL) -m 0644 package/shadow/chpasswd.pam \
+		$(TARGET_DIR)/etc/pam.d/chpasswd
+	$(INSTALL) -m 0644 package/shadow/newusers.pam \
+		$(TARGET_DIR)/etc/pam.d/newusers
+	$(INSTALL) -m 0644 package/shadow/passwd.pam \
+		$(TARGET_DIR)/etc/pam.d/passwd
+endef
+SHADOW_POST_INSTALL_TARGET_HOOKS += SHADOW_INSTALL_PAMFILES
+
+define SHADOW_PERMISSIONS
+	/usr/bin/chage f 4755 0 0 - - - - -
+	/usr/bin/expiry f 4755 0 0 - - - - -
+	/usr/bin/gpasswd f 4755 0 0 - - - - -
+	/usr/bin/newgidmap f 4755 0 0 - - - - -
+	/usr/bin/newuidmap f 4755 0 0 - - - - -
+	/usr/bin/passwd f 4755 0 0 - - - - -
+	/usr/bin/newgrp f 4755 0 0 - - - - -
+endef
+
+$(eval $(autotools-package))
diff --git a/package/shadow/xstrdup.patch b/package/shadow/xstrdup.patch
new file mode 100644
index 0000000..855e81c
--- /dev/null
+++ b/package/shadow/xstrdup.patch
@@ -0,0 +1,9 @@
+--- shadow-4.1.2.1/libmisc/xmalloc.c	2008-08-30 21:55:44.000000000 -0500
++++ shadow-4.1.2.1/libmisc/xmalloc.c.new	2008-08-30 21:55:36.000000000 -0500
+@@ -61,5 +61,6 @@
+
+ char *xstrdup (const char *str)
+ {
++	if(str == NULL) return NULL;
+	return strcpy (xmalloc (strlen (str) + 1), str);
+ }
-- 
2.3.3

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package/numactl: upgrade to 2.0.10
  2015-03-19  3:48 [Buildroot] [PATCH] package: add hwloc 1.10.1 Steven Noonan
  2015-03-19  3:48 ` [Buildroot] [PATCH] package: add powertop 2.7 Steven Noonan
  2015-03-19  3:48 ` [Buildroot] [PATCH] package: add shadow 4.2.1 Steven Noonan
@ 2015-03-19  3:48 ` Steven Noonan
  2015-03-19  5:26   ` Baruch Siach
  2015-03-19  3:48 ` [Buildroot] [PATCH] package: add pacman 4.2.1 Steven Noonan
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 19+ messages in thread
From: Steven Noonan @ 2015-03-19  3:48 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
---
 package/numactl/numactl.mk | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/package/numactl/numactl.mk b/package/numactl/numactl.mk
index f36a1b3..042f2d8 100644
--- a/package/numactl/numactl.mk
+++ b/package/numactl/numactl.mk
@@ -4,17 +4,11 @@
 #
 ################################################################################
 
-NUMACTL_VERSION = 2.0.9
+NUMACTL_VERSION = 2.0.10
 NUMACTL_SITE = ftp://oss.sgi.com/www/projects/libnuma/download
 NUMACTL_LICENSE = LGPLv2.1 (libnuma), GPLv2 (programs)
 NUMACTL_LICENSE_FILES = README
 
-define NUMACTL_BUILD_CMDS
-	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
-endef
+NUMACTL_AUTORECONF = YES
 
-define NUMACTL_INSTALL_TARGET_CMDS
-	$(MAKE) prefix=$(TARGET_DIR) libdir=$(TARGET_DIR)/lib -C $(@D) install
-endef
-
-$(eval $(generic-package))
+$(eval $(autotools-package))
-- 
2.3.3

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package: add pacman 4.2.1
  2015-03-19  3:48 [Buildroot] [PATCH] package: add hwloc 1.10.1 Steven Noonan
                   ` (2 preceding siblings ...)
  2015-03-19  3:48 ` [Buildroot] [PATCH] package/numactl: upgrade to 2.0.10 Steven Noonan
@ 2015-03-19  3:48 ` Steven Noonan
  2015-03-20  6:15   ` Baruch Siach
  2015-03-20 19:52   ` Thomas Petazzoni
  2015-03-19  3:48 ` [Buildroot] [PATCH] package: add mosh 1.2.4 Steven Noonan
  2015-03-19  5:21 ` [Buildroot] [PATCH] package: add hwloc 1.10.1 Baruch Siach
  5 siblings, 2 replies; 19+ messages in thread
From: Steven Noonan @ 2015-03-19  3:48 UTC (permalink / raw)
  To: buildroot

This is the Arch Linux package manager.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
---
 package/Config.in        |  1 +
 package/pacman/Config.in | 18 ++++++++++++++++++
 package/pacman/pacman.mk | 14 ++++++++++++++
 3 files changed, 33 insertions(+)
 create mode 100644 package/pacman/Config.in
 create mode 100644 package/pacman/pacman.mk

diff --git a/package/Config.in b/package/Config.in
index c557010..95ec454 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1261,6 +1261,7 @@ endmenu
 menu "Package managers"
 	source "package/ipkg/Config.in"
 	source "package/opkg/Config.in"
+	source "package/pacman/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	source "package/rpm/Config.in"
 endif
diff --git a/package/pacman/Config.in b/package/pacman/Config.in
new file mode 100644
index 0000000..9c4ca66
--- /dev/null
+++ b/package/pacman/Config.in
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_PACMAN
+	bool "pacman"
+	depends on BR2_TOOLCHAIN_USES_GLIBC
+	select BR2_PACKAGE_LIBGPGME
+	select BR2_PACKAGE_LIBARCHIVE
+	select BR2_PACKAGE_LIBCURL
+	select BR2_PACKAGE_OPENSSL
+	help
+	  Pacman is the package manager used by the Arch distribution. It is a
+	  frontend for the ALPM (Arch Linux Package Management) library.
+
+	  Pacman does not strive to "do everything." It will add, remove and
+	  upgrade packages in the system, and it will allow you to query the
+	  package database for installed packages, files and owners. It also
+	  attempts to handle dependencies automatically and can download
+	  packages from a remote server. Arch packages are simple archives, with
+	  .pkg.tar.gz extension for binary packages and .src.tar.gz for source
+	  packages.
diff --git a/package/pacman/pacman.mk b/package/pacman/pacman.mk
new file mode 100644
index 0000000..e979adb
--- /dev/null
+++ b/package/pacman/pacman.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# pacman
+#
+################################################################################
+
+PACMAN_VERSION = 4.2.1
+PACMAN_SITE = https://sources.archlinux.org/other/pacman
+PACMAN_SOURCES = pacman-$(PACMAN_VERSION).tar.gz
+PACMAN_DEPENDENCIES = glibc libarchive libcurl libgpgme openssl
+PACMAN_LICENSE = GPLv2
+PACMAN_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
-- 
2.3.3

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package: add mosh 1.2.4
  2015-03-19  3:48 [Buildroot] [PATCH] package: add hwloc 1.10.1 Steven Noonan
                   ` (3 preceding siblings ...)
  2015-03-19  3:48 ` [Buildroot] [PATCH] package: add pacman 4.2.1 Steven Noonan
@ 2015-03-19  3:48 ` Steven Noonan
  2015-03-20  6:12   ` Baruch Siach
  2015-03-19  5:21 ` [Buildroot] [PATCH] package: add hwloc 1.10.1 Baruch Siach
  5 siblings, 1 reply; 19+ messages in thread
From: Steven Noonan @ 2015-03-19  3:48 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
---
 package/Config.in      |  1 +
 package/mosh/Config.in | 15 +++++++++++++++
 package/mosh/mosh.mk   | 14 ++++++++++++++
 3 files changed, 30 insertions(+)
 create mode 100644 package/mosh/Config.in
 create mode 100644 package/mosh/mosh.mk

diff --git a/package/Config.in b/package/Config.in
index 95ec454..950d36b 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1153,6 +1153,7 @@ endif
 	source "package/modem-manager/Config.in"
 	source "package/mongoose/Config.in"
 	source "package/mongrel2/Config.in"
+	source "package/mosh/Config.in"
 	source "package/mrouted/Config.in"
 	source "package/mtr/Config.in"
 	source "package/nbd/Config.in"
diff --git a/package/mosh/Config.in b/package/mosh/Config.in
new file mode 100644
index 0000000..a05c711
--- /dev/null
+++ b/package/mosh/Config.in
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_MOSH
+	bool "mosh"
+	select BR2_PACKAGE_OPENSSH
+	select BR2_PACKAGE_PERL
+	select BR2_PACKAGE_PROTOBUF
+	select BR2_PACKAGE_NCURSES
+	select BR2_PACKAGE_PERL
+	select BR2_PACKAGE_ZLIB
+	help
+	  Remote terminal application that allows roaming, supports intermittent
+	  connectivity, and provides intelligent local echo and line editing of
+	  user keystrokes.
+
+	  Mosh is a replacement for SSH. It's more robust and responsive,
+	  especially over Wi-Fi, cellular, and long-distance links.
diff --git a/package/mosh/mosh.mk b/package/mosh/mosh.mk
new file mode 100644
index 0000000..c4f2c07
--- /dev/null
+++ b/package/mosh/mosh.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# mosh
+#
+################################################################################
+
+MOSH_VERSION = 1.2.4
+MOSH_SITE = http://mosh.mit.edu
+MOSH_SOURCES = mosh-$(MOSH_VERSION).tar.gz
+MOSH_DEPENDENCIES = host-protobuf-c ncurses openssh openssl perl protobuf zlib
+MOSH_LICENSE = GPLv3+
+MOSH_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
-- 
2.3.3

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package: add hwloc 1.10.1
  2015-03-19  3:48 [Buildroot] [PATCH] package: add hwloc 1.10.1 Steven Noonan
                   ` (4 preceding siblings ...)
  2015-03-19  3:48 ` [Buildroot] [PATCH] package: add mosh 1.2.4 Steven Noonan
@ 2015-03-19  5:21 ` Baruch Siach
  2015-03-19  5:24   ` Steven Noonan
  5 siblings, 1 reply; 19+ messages in thread
From: Baruch Siach @ 2015-03-19  5:21 UTC (permalink / raw)
  To: buildroot

HI Steven,

On Wed, Mar 18, 2015 at 08:48:03PM -0700, Steven Noonan wrote:
> diff --git a/package/hwloc/Config.in b/package/hwloc/Config.in
> new file mode 100644
> index 0000000..069bc8b
> --- /dev/null
> +++ b/package/hwloc/Config.in
> @@ -0,0 +1,8 @@
> +config BR2_PACKAGE_HWLOC
> +	bool "hwloc"
> +	select BR2_PACKAGE_LIBPCIACCESS
> +	select BR2_PACKAGE_NUMACTL

Please propagate the dependencies of libpciaccess (largefile), and numactl 
(largefile, arches).

> +	help
> +	  Portable Hrdware Locality

Typo: "Hardware". Also, this description is not very helpful. Please add 
something like (from the website):

	The Portable Hardware Locality (hwloc) software package provides a 
	portable abstraction (across OS, versions, architectures, ...) of the 
	hierarchical topology of modern architectures, including NUMA memory 
	nodes, sockets, shared caches, cores and simultaneous multithreading.

baruch

> +
> +	  http://www.open-mpi.org/projects/hwloc/
> diff --git a/package/hwloc/hwloc.hash b/package/hwloc/hwloc.hash
> new file mode 100644
> index 0000000..8d25904
> --- /dev/null
> +++ b/package/hwloc/hwloc.hash
> @@ -0,0 +1,2 @@
> +# From http://www.open-mpi.org/software/hwloc/v1.10/downloads/hwloc-1.10.1.tar.bz2

This line should contain the origin of the hash value below, so that the user 
can verify the hash independently. If upstream does not provide that, just say 
"Locally computed".

> +sha1	76291124e4638b2fbd4deb4cc3cd680e153077b5	hwloc-1.10.1.tar.bz2

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package: add hwloc 1.10.1
  2015-03-19  5:21 ` [Buildroot] [PATCH] package: add hwloc 1.10.1 Baruch Siach
@ 2015-03-19  5:24   ` Steven Noonan
  0 siblings, 0 replies; 19+ messages in thread
From: Steven Noonan @ 2015-03-19  5:24 UTC (permalink / raw)
  To: buildroot

On Wed, Mar 18, 2015 at 10:21 PM, Baruch Siach <baruch@tkos.co.il> wrote:
> HI Steven,
>
> On Wed, Mar 18, 2015 at 08:48:03PM -0700, Steven Noonan wrote:
>> diff --git a/package/hwloc/Config.in b/package/hwloc/Config.in
>> new file mode 100644
>> index 0000000..069bc8b
>> --- /dev/null
>> +++ b/package/hwloc/Config.in
>> @@ -0,0 +1,8 @@
>> +config BR2_PACKAGE_HWLOC
>> +     bool "hwloc"
>> +     select BR2_PACKAGE_LIBPCIACCESS
>> +     select BR2_PACKAGE_NUMACTL
>
> Please propagate the dependencies of libpciaccess (largefile), and numactl
> (largefile, arches).

OK.

>> +     help
>> +       Portable Hrdware Locality
>
> Typo: "Hardware". Also, this description is not very helpful. Please add
> something like (from the website):
>
>         The Portable Hardware Locality (hwloc) software package provides a
>         portable abstraction (across OS, versions, architectures, ...) of the
>         hierarchical topology of modern architectures, including NUMA memory
>         nodes, sockets, shared caches, cores and simultaneous multithreading.

Already fixed in v2.

> baruch
>
>> +
>> +       http://www.open-mpi.org/projects/hwloc/
>> diff --git a/package/hwloc/hwloc.hash b/package/hwloc/hwloc.hash
>> new file mode 100644
>> index 0000000..8d25904
>> --- /dev/null
>> +++ b/package/hwloc/hwloc.hash
>> @@ -0,0 +1,2 @@
>> +# From http://www.open-mpi.org/software/hwloc/v1.10/downloads/hwloc-1.10.1.tar.bz2
>
> This line should contain the origin of the hash value below, so that the user
> can verify the hash independently. If upstream does not provide that, just say
> "Locally computed".
>
>> +sha1 76291124e4638b2fbd4deb4cc3cd680e153077b5        hwloc-1.10.1.tar.bz2

OK. Will fix.

> baruch
>
> --
>      http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
>    - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package/numactl: upgrade to 2.0.10
  2015-03-19  3:48 ` [Buildroot] [PATCH] package/numactl: upgrade to 2.0.10 Steven Noonan
@ 2015-03-19  5:26   ` Baruch Siach
  2015-03-19  5:30     ` Steven Noonan
  0 siblings, 1 reply; 19+ messages in thread
From: Baruch Siach @ 2015-03-19  5:26 UTC (permalink / raw)
  To: buildroot

Hi Steven,

On Wed, Mar 18, 2015 at 08:48:06PM -0700, Steven Noonan wrote:
> Signed-off-by: Steven Noonan <steven@uplinklabs.net>

This is a non trivial version bump. Please explain here that the package now 
uses the autotools infrastructure.

> ---
>  package/numactl/numactl.mk | 12 +++---------
>  1 file changed, 3 insertions(+), 9 deletions(-)
> 
> diff --git a/package/numactl/numactl.mk b/package/numactl/numactl.mk
> index f36a1b3..042f2d8 100644
> --- a/package/numactl/numactl.mk
> +++ b/package/numactl/numactl.mk
> @@ -4,17 +4,11 @@
>  #
>  ################################################################################
>  
> -NUMACTL_VERSION = 2.0.9
> +NUMACTL_VERSION = 2.0.10
>  NUMACTL_SITE = ftp://oss.sgi.com/www/projects/libnuma/download
>  NUMACTL_LICENSE = LGPLv2.1 (libnuma), GPLv2 (programs)
>  NUMACTL_LICENSE_FILES = README
>  
> -define NUMACTL_BUILD_CMDS
> -	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
> -endef
> +NUMACTL_AUTORECONF = YES

Why? Please add inline comment clarifying that.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package/numactl: upgrade to 2.0.10
  2015-03-19  5:26   ` Baruch Siach
@ 2015-03-19  5:30     ` Steven Noonan
  0 siblings, 0 replies; 19+ messages in thread
From: Steven Noonan @ 2015-03-19  5:30 UTC (permalink / raw)
  To: buildroot

On Wed, Mar 18, 2015 at 10:26 PM, Baruch Siach <baruch@tkos.co.il> wrote:
> Hi Steven,
>
> On Wed, Mar 18, 2015 at 08:48:06PM -0700, Steven Noonan wrote:
>> Signed-off-by: Steven Noonan <steven@uplinklabs.net>
>
> This is a non trivial version bump. Please explain here that the package now
> uses the autotools infrastructure.
>
>> ---
>>  package/numactl/numactl.mk | 12 +++---------
>>  1 file changed, 3 insertions(+), 9 deletions(-)
>>
>> diff --git a/package/numactl/numactl.mk b/package/numactl/numactl.mk
>> index f36a1b3..042f2d8 100644
>> --- a/package/numactl/numactl.mk
>> +++ b/package/numactl/numactl.mk
>> @@ -4,17 +4,11 @@
>>  #
>>  ################################################################################
>>
>> -NUMACTL_VERSION = 2.0.9
>> +NUMACTL_VERSION = 2.0.10
>>  NUMACTL_SITE = ftp://oss.sgi.com/www/projects/libnuma/download
>>  NUMACTL_LICENSE = LGPLv2.1 (libnuma), GPLv2 (programs)
>>  NUMACTL_LICENSE_FILES = README
>>
>> -define NUMACTL_BUILD_CMDS
>> -     $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
>> -endef
>> +NUMACTL_AUTORECONF = YES
>
> Why? Please add inline comment clarifying that.

Fair enough. The reason is because the numactl tarball doesn't already
contain a configure script, but does contain configure.ac,
Makefile.am, etc. Will add a comment.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package: add powertop 2.7
  2015-03-19  3:48 ` [Buildroot] [PATCH] package: add powertop 2.7 Steven Noonan
@ 2015-03-19  5:31   ` Baruch Siach
  0 siblings, 0 replies; 19+ messages in thread
From: Baruch Siach @ 2015-03-19  5:31 UTC (permalink / raw)
  To: buildroot

Hi Steven,

On Wed, Mar 18, 2015 at 08:48:04PM -0700, Steven Noonan wrote:
> diff --git a/package/powertop/Config.in b/package/powertop/Config.in
> new file mode 100644
> index 0000000..0e83c8f
> --- /dev/null
> +++ b/package/powertop/Config.in
> @@ -0,0 +1,9 @@
> +config BR2_PACKAGE_POWERTOP
> +	bool "powertop"
> +	select BR2_PACKAGE_NCURSES
> +	select BR2_PACKAGE_PCIUTILS
> +	select BR2_PACKAGE_LIBNL

Dependencies propagation.

> +	help
> +	  A tool to diagnose issues with power consumption and power management
> +
> +	  https://01.org/powertop/
> diff --git a/package/powertop/powertop-autotune.patch b/package/powertop/powertop-autotune.patch
> new file mode 100644
> index 0000000..23d6433
> --- /dev/null
> +++ b/package/powertop/powertop-autotune.patch
> @@ -0,0 +1,9 @@
> +--- a/src/devices/devfreq.cpp
> ++++ b/src/devices/devfreq.cpp

Please add a description and your sing-off here.

> +@@ -247,6 +247,7 @@ void create_all_devfreq_devices(void)
> +		fprintf(stderr, "Devfreq not enabled\n");
> +		is_enabled = false;
> +		closedir(dir);
> ++		dir = NULL;
> +		return;
> +	}
> diff --git a/package/powertop/powertop.hash b/package/powertop/powertop.hash
> new file mode 100644
> index 0000000..b26ae80
> --- /dev/null
> +++ b/package/powertop/powertop.hash
> @@ -0,0 +1,2 @@
> +# From https://01.org/sites/default/files/downloads/powertop/powertop-2.7.tar.gz

Hash origin.

> +sha256	8d4b1490e2baad4467c0ded3c423db4472dcbf7b2dd8f8f2a928f54047c678ca	powertop-2.7.tar.gz
> diff --git a/package/powertop/powertop.mk b/package/powertop/powertop.mk
> new file mode 100644
> index 0000000..337688a
> --- /dev/null
> +++ b/package/powertop/powertop.mk
> @@ -0,0 +1,14 @@
> +################################################################################
> +#
> +# powertop
> +#
> +################################################################################
> +
> +POWERTOP_VERSION = 2.7
> +POWERTOP_SOURCE = powertop-$(POWERTOP_VERSION).tar.gz

This is the default. Please remove.

> +POWERTOP_SITE = https://01.org/sites/default/files/downloads/powertop/
> +POWERTOP_DEPENDENCIES = pciutils ncurses libnl
> +POWERTOP_LICENSE = GPLv2
> +POWERTOP_LICENSE_FILES = COPYING
> +
> +$(eval $(autotools-package))

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package: add shadow 4.2.1
  2015-03-19  3:48 ` [Buildroot] [PATCH] package: add shadow 4.2.1 Steven Noonan
@ 2015-03-19 13:07   ` Ryan Barnett
  2015-07-18 20:11   ` Thomas Petazzoni
  1 sibling, 0 replies; 19+ messages in thread
From: Ryan Barnett @ 2015-03-19 13:07 UTC (permalink / raw)
  To: buildroot

Steven,

On Wed, Mar 18, 2015 at 10:48 PM, Steven Noonan <steven@uplinklabs.net> wrote:

[...]

> diff --git a/package/Config.in b/package/Config.in
> index c938326..c557010 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1341,6 +1341,7 @@ endif
>  if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
>         source "package/rsyslog/Config.in"
>  endif
> +       source "package/shadow/Config.in"
>         source "package/smack/Config.in"
>  if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
>         source "package/start-stop-daemon/Config.in"
> diff --git a/package/shadow/Config.in b/package/shadow/Config.in
> new file mode 100644
> index 0000000..0c3d6e1
> --- /dev/null
> +++ b/package/shadow/Config.in
> @@ -0,0 +1,10 @@
> +config BR2_PACKAGE_SHADOW
> +       bool "shadow"
> +       select BR2_PACKAGE_ACL
> +       select BR2_PACKAGE_LINUX_PAM
> +       select BR2_PACKAGE_UTIL_LINUX

Thanks for you contribution!

This package has already been submitted to the buildroot mailing list
as part of the SELinux patchset. It can be found here:

http://patchwork.ozlabs.org/patch/427124/

I was curious to know why Shadow requires linux-pam and util-linux as
these seem like large packages that I think should be optionally
enabled. I believe that it will work with busybox in place of
util-linux. If util-linux is required, could you give a explanation as
to why util-linux is preferred over busybox's implementation? (Curious
to know)

> +       help
> +         Password and account management tool suite with support for shadow files
> +         and PAM
> +
> +         http://pkg-shadow.alioth.debian.org/

[...]

> diff --git a/package/shadow/shadow.mk b/package/shadow/shadow.mk
> new file mode 100644
> index 0000000..e2fd209
> --- /dev/null
> +++ b/package/shadow/shadow.mk
> @@ -0,0 +1,43 @@
> +################################################################################
> +#
> +# shadow
> +#
> +################################################################################
> +
> +SHADOW_VERSION = 4.2.1
> +SHADOW_SITE = http://pkg-shadow.alioth.debian.org/releases/
> +SHADOW_SOURCE = shadow-$(SHADOW_VERSION).tar.xz
> +SHADOW_LICENSE = BSD-3c
> +SHADOW_LICENSE_FILES = LICENCE
> +SHADOW_AUTORECONF = YES
> +SHADOW_CONF_OPTS = \
> +       --sysconfdir=/etc \
> +       --enable-subordinate-ids=yes \
> +       --with-libpam \
> +       --with-group-name-max-length=32 \
> +       --without-selinux
> +SHADOW_DEPENDENCIES = acl linux-pam util-linux
> +
> +define SHADOW_INSTALL_PAMFILES
> +       $(INSTALL) -m 0644 package/shadow/chgpasswd.pam \
> +               $(TARGET_DIR)/etc/pam.d/chgpasswd
> +       $(INSTALL) -m 0644 package/shadow/chpasswd.pam \
> +               $(TARGET_DIR)/etc/pam.d/chpasswd
> +       $(INSTALL) -m 0644 package/shadow/newusers.pam \
> +               $(TARGET_DIR)/etc/pam.d/newusers
> +       $(INSTALL) -m 0644 package/shadow/passwd.pam \
> +               $(TARGET_DIR)/etc/pam.d/passwd
> +endef
> +SHADOW_POST_INSTALL_TARGET_HOOKS += SHADOW_INSTALL_PAMFILES

To make shadow optionally dependent on linux-pam, these should only be
install if linux-pam package is selected. The util-linux package has
an example of this:

http://git.buildroot.net/buildroot/tree/package/util-linux/util-linux.mk#n139


> +define SHADOW_PERMISSIONS
> +       /usr/bin/chage f 4755 0 0 - - - - -
> +       /usr/bin/expiry f 4755 0 0 - - - - -
> +       /usr/bin/gpasswd f 4755 0 0 - - - - -
> +       /usr/bin/newgidmap f 4755 0 0 - - - - -
> +       /usr/bin/newuidmap f 4755 0 0 - - - - -
> +       /usr/bin/passwd f 4755 0 0 - - - - -
> +       /usr/bin/newgrp f 4755 0 0 - - - - -
> +endef

Does the install stop not install these with the correct permissions?
I believe that they should already be getting the correct permissions
when 'make install' is getting called. This SHADOW_PERMISSIONS should
be removed.

Would you be willing to take a look at the proposed patch above and
rework this to make util-linux optional (or not need at all)? I think
you have added useful features onto of this package that weren't a
part of the originally proposed patch.

Thanks,
-Ryan

-- 
Ryan Barnett / Sr Software Engineer
Airborne Information Systems / Security Systems and Software
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
ryan.barnett at rockwellcollins.com
www.rockwellcollins.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package: add mosh 1.2.4
  2015-03-19  3:48 ` [Buildroot] [PATCH] package: add mosh 1.2.4 Steven Noonan
@ 2015-03-20  6:12   ` Baruch Siach
  0 siblings, 0 replies; 19+ messages in thread
From: Baruch Siach @ 2015-03-20  6:12 UTC (permalink / raw)
  To: buildroot

Hi Steven,

On Wed, Mar 18, 2015 at 08:48:08PM -0700, Steven Noonan wrote:
> diff --git a/package/mosh/Config.in b/package/mosh/Config.in
> new file mode 100644
> index 0000000..a05c711
> --- /dev/null
> +++ b/package/mosh/Config.in
> @@ -0,0 +1,15 @@
> +config BR2_PACKAGE_MOSH
> +	bool "mosh"
> +	select BR2_PACKAGE_OPENSSH
> +	select BR2_PACKAGE_PERL
> +	select BR2_PACKAGE_PROTOBUF
> +	select BR2_PACKAGE_NCURSES
> +	select BR2_PACKAGE_PERL

Duplicate.

> +	select BR2_PACKAGE_ZLIB

Please propagate dependencies.

> +	help
> +	  Remote terminal application that allows roaming, supports intermittent
> +	  connectivity, and provides intelligent local echo and line editing of
> +	  user keystrokes.
> +
> +	  Mosh is a replacement for SSH. It's more robust and responsive,
> +	  especially over Wi-Fi, cellular, and long-distance links.
> diff --git a/package/mosh/mosh.mk b/package/mosh/mosh.mk
> new file mode 100644
> index 0000000..c4f2c07
> --- /dev/null
> +++ b/package/mosh/mosh.mk
> @@ -0,0 +1,14 @@
> +################################################################################
> +#
> +# mosh
> +#
> +################################################################################
> +
> +MOSH_VERSION = 1.2.4
> +MOSH_SITE = http://mosh.mit.edu
> +MOSH_SOURCES = mosh-$(MOSH_VERSION).tar.gz

That's the default.

> +MOSH_DEPENDENCIES = host-protobuf-c ncurses openssh openssl perl protobuf zlib

You missed selecting BR2_PACKAGE_OPENSSL in Config.in.

> +MOSH_LICENSE = GPLv3+
> +MOSH_LICENSE_FILES = COPYING
> +
> +$(eval $(autotools-package))

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package: add pacman 4.2.1
  2015-03-19  3:48 ` [Buildroot] [PATCH] package: add pacman 4.2.1 Steven Noonan
@ 2015-03-20  6:15   ` Baruch Siach
  2015-03-20 19:52   ` Thomas Petazzoni
  1 sibling, 0 replies; 19+ messages in thread
From: Baruch Siach @ 2015-03-20  6:15 UTC (permalink / raw)
  To: buildroot

Hi Steven,

On Wed, Mar 18, 2015 at 08:48:07PM -0700, Steven Noonan wrote:
> diff --git a/package/pacman/Config.in b/package/pacman/Config.in
> new file mode 100644
> index 0000000..9c4ca66
> --- /dev/null
> +++ b/package/pacman/Config.in
> @@ -0,0 +1,18 @@
> +config BR2_PACKAGE_PACMAN
> +	bool "pacman"
> +	depends on BR2_TOOLCHAIN_USES_GLIBC

Why? Please explain in the commit log.

> +	select BR2_PACKAGE_LIBGPGME
> +	select BR2_PACKAGE_LIBARCHIVE
> +	select BR2_PACKAGE_LIBCURL
> +	select BR2_PACKAGE_OPENSSL

Please propagate dependencies.

> +	help
> +	  Pacman is the package manager used by the Arch distribution. It is a
> +	  frontend for the ALPM (Arch Linux Package Management) library.
> +
> +	  Pacman does not strive to "do everything." It will add, remove and
> +	  upgrade packages in the system, and it will allow you to query the
> +	  package database for installed packages, files and owners. It also
> +	  attempts to handle dependencies automatically and can download
> +	  packages from a remote server. Arch packages are simple archives, with
> +	  .pkg.tar.gz extension for binary packages and .src.tar.gz for source
> +	  packages.
> diff --git a/package/pacman/pacman.mk b/package/pacman/pacman.mk
> new file mode 100644
> index 0000000..e979adb
> --- /dev/null
> +++ b/package/pacman/pacman.mk
> @@ -0,0 +1,14 @@
> +################################################################################
> +#
> +# pacman
> +#
> +################################################################################
> +
> +PACMAN_VERSION = 4.2.1
> +PACMAN_SITE = https://sources.archlinux.org/other/pacman
> +PACMAN_SOURCES = pacman-$(PACMAN_VERSION).tar.gz

Default.

> +PACMAN_DEPENDENCIES = glibc libarchive libcurl libgpgme openssl

No need to explicitly depend on 'glibc'. glibc is part of the toolchain that 
is an implicit dependency of everything.

> +PACMAN_LICENSE = GPLv2
> +PACMAN_LICENSE_FILES = COPYING
> +
> +$(eval $(autotools-package))

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package: add pacman 4.2.1
  2015-03-19  3:48 ` [Buildroot] [PATCH] package: add pacman 4.2.1 Steven Noonan
  2015-03-20  6:15   ` Baruch Siach
@ 2015-03-20 19:52   ` Thomas Petazzoni
  2015-03-20 20:18     ` Steven Noonan
  1 sibling, 1 reply; 19+ messages in thread
From: Thomas Petazzoni @ 2015-03-20 19:52 UTC (permalink / raw)
  To: buildroot

Dear Steven Noonan,

On Wed, 18 Mar 2015 20:48:07 -0700, Steven Noonan wrote:
> This is the Arch Linux package manager.
> 
> Signed-off-by: Steven Noonan <steven@uplinklabs.net>
> ---
>  package/Config.in        |  1 +
>  package/pacman/Config.in | 18 ++++++++++++++++++
>  package/pacman/pacman.mk | 14 ++++++++++++++
>  3 files changed, 33 insertions(+)
>  create mode 100644 package/pacman/Config.in
>  create mode 100644 package/pacman/pacman.mk

In addition to the comments made by Baruch, could you also include in
the commit log a motivation for adding this package in Buildroot?

It seems a bit weird to package the package manager of another distro.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package: add pacman 4.2.1
  2015-03-20 19:52   ` Thomas Petazzoni
@ 2015-03-20 20:18     ` Steven Noonan
  2015-03-20 20:34       ` Thomas Petazzoni
  0 siblings, 1 reply; 19+ messages in thread
From: Steven Noonan @ 2015-03-20 20:18 UTC (permalink / raw)
  To: buildroot

On Fri, Mar 20, 2015 at 12:52 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Steven Noonan,
>
> On Wed, 18 Mar 2015 20:48:07 -0700, Steven Noonan wrote:
>> This is the Arch Linux package manager.
>>
>> Signed-off-by: Steven Noonan <steven@uplinklabs.net>
>> ---
>>  package/Config.in        |  1 +
>>  package/pacman/Config.in | 18 ++++++++++++++++++
>>  package/pacman/pacman.mk | 14 ++++++++++++++
>>  3 files changed, 33 insertions(+)
>>  create mode 100644 package/pacman/Config.in
>>  create mode 100644 package/pacman/pacman.mk
>
> In addition to the comments made by Baruch, could you also include in
> the commit log a motivation for adding this package in Buildroot?
>
> It seems a bit weird to package the package manager of another distro.
>

Why do we have RPM then? :)

If we don't want it in there I have no problem maintaining it in my own tree.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package: add pacman 4.2.1
  2015-03-20 20:18     ` Steven Noonan
@ 2015-03-20 20:34       ` Thomas Petazzoni
  2015-03-20 21:19         ` Steven Noonan
  0 siblings, 1 reply; 19+ messages in thread
From: Thomas Petazzoni @ 2015-03-20 20:34 UTC (permalink / raw)
  To: buildroot

Dear Steven Noonan,

On Fri, 20 Mar 2015 13:18:46 -0700, Steven Noonan wrote:

> > In addition to the comments made by Baruch, could you also include in
> > the commit log a motivation for adding this package in Buildroot?
> >
> > It seems a bit weird to package the package manager of another distro.
> 
> Why do we have RPM then? :)

Well, to be honest I don't know how rpm compares to pacman. I believe
the reason we have rpm and opkg is because some people might build
their own binary packages (outside of Buildroot, since Buildroot
doesn't allow building binary packages), and install them inside a
Buildroot system.

> If we don't want it in there I have no problem maintaining it in my
> own tree.

Well, it's that we don't want it, the package seems pretty simple, so
it's not that a big issue. It's just that it's a bit unusual, and some
explanations about the use case would be useful.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package: add pacman 4.2.1
  2015-03-20 20:34       ` Thomas Petazzoni
@ 2015-03-20 21:19         ` Steven Noonan
  0 siblings, 0 replies; 19+ messages in thread
From: Steven Noonan @ 2015-03-20 21:19 UTC (permalink / raw)
  To: buildroot

On Fri, Mar 20, 2015 at 1:34 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Steven Noonan,
>
> On Fri, 20 Mar 2015 13:18:46 -0700, Steven Noonan wrote:
>
>> > In addition to the comments made by Baruch, could you also include in
>> > the commit log a motivation for adding this package in Buildroot?
>> >
>> > It seems a bit weird to package the package manager of another distro.
>>
>> Why do we have RPM then? :)
>
> Well, to be honest I don't know how rpm compares to pacman. I believe
> the reason we have rpm and opkg is because some people might build
> their own binary packages (outside of Buildroot, since Buildroot
> doesn't allow building binary packages), and install them inside a
> Buildroot system.
>
>> If we don't want it in there I have no problem maintaining it in my
>> own tree.
>
> Well, it's that we don't want it, the package seems pretty simple, so
> it's not that a big issue. It's just that it's a bit unusual, and some
> explanations about the use case would be useful.
>

OK, fair enough. Pacman is fairly generally applicable and could work
fine for Buildroot (just as RPM could).

I have two distinct use cases:

- PXE Arch Linux installer ramdisks (ArchISO is a bit too big for my tastes)
- Minimalistic virtualization hosts

First, I'd like to use Buildroot to create a minimal PXE booted
ramdisk to do automated Arch Linux installs -- in order to do that, I
need pacman + the arch-install-scripts.

And second, which may be part of a larger discussion to have: I also
envision Buildroot being used to create very stripped down Linux
installs for virtualization hosts, i.e. kernel + bare minimum
userspace + xen/kvm/lxc. Most Xen/KVM/LXC admins seem to use full
desktop/server Linux installs on their virtualization hosts, but this
is really unnecessary and often is disruptive to guest operating
systems. I would contend people should really treat the privileged
domain (host) as an embedded system, especially to avoid contention
between guests and the host. For example, why would you want mandb or
updatedb running via cron on your host when you'll never use the
fruits of their labor there? All those do is consume resources that
could otherwise be used by a guest, and introduce observable latencies
in the guest environments. As for how this relates to Pacman: in order
to act as a minimal LXC host, the various Linux distribution package
managers are needed for 'lxc-create' with a template (e.g. Fedora has
the Debian and Arch package managers available in their repositories,
as odd as that may seem at first glance). In the case of KVM and Xen,
you're just dealing with disk images, so it's not necessary to have
the other distros' package managers.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Buildroot] [PATCH] package: add shadow 4.2.1
  2015-03-19  3:48 ` [Buildroot] [PATCH] package: add shadow 4.2.1 Steven Noonan
  2015-03-19 13:07   ` Ryan Barnett
@ 2015-07-18 20:11   ` Thomas Petazzoni
  1 sibling, 0 replies; 19+ messages in thread
From: Thomas Petazzoni @ 2015-07-18 20:11 UTC (permalink / raw)
  To: buildroot

Hello Steven,

On Wed, 18 Mar 2015 20:48:05 -0700, Steven Noonan wrote:
> Signed-off-by: Steven Noonan <steven@uplinklabs.net>
> ---
>  package/Config.in                                 |   1 +
>  package/shadow/Config.in                          |  10 +
>  package/shadow/chgpasswd.pam                      |   4 +
>  package/shadow/chpasswd.pam                       |   6 +
>  package/shadow/newusers.pam                       |   6 +
>  package/shadow/passwd.pam                         |   4 +
>  package/shadow/remove-util-linux-conflicts.patch  | 642 ++++++++++++++++++++++
>  package/shadow/shadow-4.2.1-subordinate-ids.patch |  34 ++
>  package/shadow/shadow-strncpy-usage.patch         |  25 +
>  package/shadow/shadow.hash                        |   1 +
>  package/shadow/shadow.mk                          |  43 ++
>  package/shadow/xstrdup.patch                      |   9 +
>  12 files changed, 785 insertions(+)
>  create mode 100644 package/shadow/Config.in
>  create mode 100644 package/shadow/chgpasswd.pam
>  create mode 100644 package/shadow/chpasswd.pam
>  create mode 100644 package/shadow/newusers.pam
>  create mode 100644 package/shadow/passwd.pam
>  create mode 100644 package/shadow/remove-util-linux-conflicts.patch
>  create mode 100644 package/shadow/shadow-4.2.1-subordinate-ids.patch
>  create mode 100644 package/shadow/shadow-strncpy-usage.patch
>  create mode 100644 package/shadow/shadow.hash
>  create mode 100644 package/shadow/shadow.mk
>  create mode 100644 package/shadow/xstrdup.patch

Shortly after you submitted this patch, Ryan Barnett (in Cc) made a
number of comments / asked some questions, but you never answered or
posted a new version.

Ryan also mentioned that another proposal had been made for the shadow
package, as part of the SELinux support. While the SELinux series is
still on-going (some of it has been merged, some remains to be merged),
the shadow package is no longer part of it.

Therefore, Steven and Ryan, if you still care about shadow, please
resubmit a new version that addresses the different problems/questions.

In the mean time, I'll mark the patch as Changes Requested in patchwork.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-07-18 20:11 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-19  3:48 [Buildroot] [PATCH] package: add hwloc 1.10.1 Steven Noonan
2015-03-19  3:48 ` [Buildroot] [PATCH] package: add powertop 2.7 Steven Noonan
2015-03-19  5:31   ` Baruch Siach
2015-03-19  3:48 ` [Buildroot] [PATCH] package: add shadow 4.2.1 Steven Noonan
2015-03-19 13:07   ` Ryan Barnett
2015-07-18 20:11   ` Thomas Petazzoni
2015-03-19  3:48 ` [Buildroot] [PATCH] package/numactl: upgrade to 2.0.10 Steven Noonan
2015-03-19  5:26   ` Baruch Siach
2015-03-19  5:30     ` Steven Noonan
2015-03-19  3:48 ` [Buildroot] [PATCH] package: add pacman 4.2.1 Steven Noonan
2015-03-20  6:15   ` Baruch Siach
2015-03-20 19:52   ` Thomas Petazzoni
2015-03-20 20:18     ` Steven Noonan
2015-03-20 20:34       ` Thomas Petazzoni
2015-03-20 21:19         ` Steven Noonan
2015-03-19  3:48 ` [Buildroot] [PATCH] package: add mosh 1.2.4 Steven Noonan
2015-03-20  6:12   ` Baruch Siach
2015-03-19  5:21 ` [Buildroot] [PATCH] package: add hwloc 1.10.1 Baruch Siach
2015-03-19  5:24   ` Steven Noonan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.