summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/base-files/Makefile2
-rw-r--r--package/base-files/src/etc/init.d/boot4
-rwxr-xr-xpackage/base-files/src/etc/network/if-pre-up.d/03-bridge4
-rwxr-xr-xpackage/base-files/src/init1
-rw-r--r--package/coreutils/Makefile12
-rw-r--r--package/eglibc/Makefile5
-rw-r--r--package/glibc/Makefile2
-rw-r--r--package/libXp/Makefile9
-rwxr-xr-xpackage/libvirt/files/libvirt.init3
-rw-r--r--package/libxml2/Makefile2
-rw-r--r--package/zip/patches/patch-unix_Makefile33
-rw-r--r--package/zip/patches/patch-unix_Makefile.orig29
12 files changed, 91 insertions, 15 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index fa1fecd86..b00b81918 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -6,7 +6,7 @@ include $(TOPDIR)/mk/rootfs.mk
PKG_NAME:= base-files
PKG_VERSION:= 1.0
-PKG_RELEASE:= 48
+PKG_RELEASE:= 49
PKG_SECTION:= base
PKG_DESCR:= basic files and scripts
diff --git a/package/base-files/src/etc/init.d/boot b/package/base-files/src/etc/init.d/boot
index ed55ccc88..e30360142 100644
--- a/package/base-files/src/etc/init.d/boot
+++ b/package/base-files/src/etc/init.d/boot
@@ -26,4 +26,8 @@ for f in /etc/modules.d/*; do
done
# settle down, after module load
sleep 2
+# any lvm volumes to activate?
+[ -x /usr/sbin/lvm ] && { lvm vgscan; lvm vgchange -ay;}
+# check and mount all filesystems not /
+[ -f /etc/fstab ] && { fsck -p >/dev/null; mount -a; swapon -a;}
exit 0
diff --git a/package/base-files/src/etc/network/if-pre-up.d/03-bridge b/package/base-files/src/etc/network/if-pre-up.d/03-bridge
index 9bdbf8302..916fafadb 100755
--- a/package/base-files/src/etc/network/if-pre-up.d/03-bridge
+++ b/package/base-files/src/etc/network/if-pre-up.d/03-bridge
@@ -15,7 +15,9 @@ case "$IF_BRIDGE_PORTS" in
esac
brctl addbr $IFACE || exit 1
-[[ -n $IF_BRIDGE_FD ]] && brctl setfd $IFACE $IF_BRIDGE_FD
+if [ "$IF_BRIDGE_FD" != "" ]; then
+ brctl setfd $IFACE $IF_BRIDGE_FD
+fi
for IF in $INTERFACES; do
if ! grep -q $IF /proc/net/dev; then
diff --git a/package/base-files/src/init b/package/base-files/src/init
index cfd264c3e..98d24c834 100755
--- a/package/base-files/src/init
+++ b/package/base-files/src/init
@@ -22,5 +22,4 @@ cat /etc/.rnd >/dev/urandom 2>&1
[ -x /kexecinit ] && { /kexecinit; }
[ -x /cryptinit ] && { /cryptinit; exec switch_root /mnt "/init";}
[ -x /sbin/cfgfs ] && { cfgfs setup; mount -o remount,ro /;} || mount -o remount,rw /
-[ -f /etc/fstab ] && { fsck -p >/dev/null; mount -a; swapon -a;}
exec /sbin/init
diff --git a/package/coreutils/Makefile b/package/coreutils/Makefile
index 8d35c3c8e..1e85c09d4 100644
--- a/package/coreutils/Makefile
+++ b/package/coreutils/Makefile
@@ -12,20 +12,28 @@ PKG_SECTION:= base
PKG_URL:= http://www.gnu.org/software/coreutils/
PKG_SITES:= http://ftp.gnu.org/gnu/coreutils/
-PKG_SUBPKGS:= TSORT
+PKG_SUBPKGS:= TSORT SHA256SUM
PKGSD_TSORT:= topological sort utility
PKGSC_TSORT:= misc
+PKGSD_SHA256SUM:= SHA1 256 bit checksum utility
+PKGSC_SHA256SUM:= misc
include $(TOPDIR)/mk/package.mk
#$(eval $(call PKG_template,COREUTILS,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,TSORT,tsort,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_TSORT},${PKGSC_TSORT}))
+$(eval $(call PKG_template,SHA256SUM,sha256sum,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_SHA256SUM},${PKGSC_SHA256SUM}))
CONFIGURE_ARGS+= --disable-rpath
-post-install:
+tsort-install:
$(INSTALL_DIR) $(IDIR_TSORT)/usr/bin
$(INSTALL_BIN) $(WRKINST)/usr/bin/tsort \
$(IDIR_TSORT)/usr/bin
+sha256sum-install:
+ $(INSTALL_DIR) $(IDIR_SHA256SUM)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/sha256sum \
+ $(IDIR_SHA256SUM)/usr/bin
+
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/eglibc/Makefile b/package/eglibc/Makefile
index 494978b0c..0378d6200 100644
--- a/package/eglibc/Makefile
+++ b/package/eglibc/Makefile
@@ -54,7 +54,7 @@ ifeq ($(ADK_LOCALES),y)
$(CP) $(STAGING_TARGET_DIR)/usr/bin/locale $(IDIR_EGLIBC)/usr/bin
endif
${INSTALL_DIR} $(IDIR_EGLIBC)/lib $(IDIR_EGLIBC)/etc \
- $(IDIR_EGLIBC)/usr/lib
+ $(IDIR_EGLIBC)/usr/lib $(IDIR_EGLIBC)/usr/bin
cd ${STAGING_TARGET_DIR} && for f in UTC ${ADK_RUNTIME_TIMEZONE}; do \
test -s usr/share/zoneinfo/"$$f" || continue; \
echo usr/share/zoneinfo/"$$f" | \
@@ -82,6 +82,7 @@ endif
${INSTALL_DATA} ${STAGING_TARGET_DIR}/etc/gai.conf ${IDIR_EGLIBC}/etc
${INSTALL_DATA} ${STAGING_TARGET_DIR}/etc/nscd.conf ${IDIR_EGLIBC}/etc
${INSTALL_DATA} ${STAGING_TARGET_DIR}/etc/nsswitch.conf ${IDIR_EGLIBC}/etc
+ $(CP) $(STAGING_TARGET_DIR)/usr/bin/getconf $(IDIR_EGLIBC)/usr/bin
eglibc-static-install:
${INSTALL_DIR} $(IDIR_EGLIBC_STATIC)/usr/lib
@@ -102,7 +103,7 @@ ifeq ($(ADK_TARGET_ABI_N64),y)
endif
${CP} ${STAGING_TARGET_DIR}/usr/lib/crt* ${IDIR_EGLIBC_DEV}/usr/lib
${CP} ${STAGING_TARGET_DIR}/usr/lib/libc_nonshared.a ${IDIR_EGLIBC_DEV}/usr/lib
- -for file in libc libcrypt libdl libm libresolv librt libutil; do \
+ -for file in libcrypt libdl libm libresolv librt libutil; do \
cd $(IDIR_EGLIBC_DEV)/lib/; ln -sf $$file-$(PKG_VERSION).so $$file.so; \
done
# header package
diff --git a/package/glibc/Makefile b/package/glibc/Makefile
index 6ca0475e5..27cbe28f8 100644
--- a/package/glibc/Makefile
+++ b/package/glibc/Makefile
@@ -57,7 +57,7 @@ glibc-dev-install:
-cp ./files/libc.so.$(CPU_ARCH) $(IDIR_GLIBC_DEV)/usr/lib/libc.so
${CP} ${STAGING_TARGET_DIR}/usr/lib/crt* ${IDIR_GLIBC_DEV}/usr/lib
${CP} ${STAGING_TARGET_DIR}/usr/lib/libc_nonshared.a ${IDIR_GLIBC_DEV}/usr/lib
- -for file in libc libcrypt libdl libm libresolv librt libutil; do \
+ -for file in libcrypt libdl libm libresolv librt libutil; do \
cd $(IDIR_GLIBC_DEV)/lib; ln -sf $$file-$(PKG_VERSION).so $$file.so; \
done
# header package
diff --git a/package/libXp/Makefile b/package/libXp/Makefile
index d01c734a0..9682b4f5b 100644
--- a/package/libXp/Makefile
+++ b/package/libXp/Makefile
@@ -15,21 +15,20 @@ PKG_SITES:= ${MASTER_SITE_XORG}
PKG_SUBPKGS:= LIBXP LIBXP_DEV
PKGSD_LIBXP_DEV:= X Print headers
PKGSC_LIBXP_DEV:= x11/devel
+PKGSS_LIBXP_DEV:= printproto
include $(TOPDIR)/mk/package.mk
-$(eval $(call PKG_template,LIBXP,libpt,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-$(eval $(call PKG_template,LIBXP_DEV,libpt-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBXP_DEV},${PKGSC_LIBXP_DEV}))
+$(eval $(call PKG_template,LIBXP,libxp,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBXP_DEV,libxp-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBXP_DEV},${PKGSC_LIBXP_DEV}))
libxp-install:
${INSTALL_DIR} ${IDIR_LIBXP}/usr/lib
${CP} ${WRKINST}/usr/lib/libXp.so* ${IDIR_LIBXP}/usr/lib
libxp-dev-install:
- ${INSTALL_DIR} ${IDIR_LIBXP_DEV}/usr/include
- ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBXP_DEV}/usr/include
${INSTALL_DIR} ${IDIR_LIBXP_DEV}/usr/lib/pkgconfig
- ${INSTALL_DATA} ${WRKINST}/usr/lib/pkgconfig/*.pc \
+ ${INSTALL_DATA} ${WRKBUILD}/*.pc \
${IDIR_LIBXP_DEV}/usr/lib/pkgconfig
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libvirt/files/libvirt.init b/package/libvirt/files/libvirt.init
index 2644e1a1b..fe83686dc 100755
--- a/package/libvirt/files/libvirt.init
+++ b/package/libvirt/files/libvirt.init
@@ -10,13 +10,14 @@ autostart)
exec sh $0 start
;;
start)
- /usr/sbin/libvirtd -dv
+ /usr/sbin/libvirtd -d
;;
stop)
kill $(pgrep -f /usr/sbin/libvirtd)
;;
restart)
sh $0 stop
+ sleep 2
sh $0 start
;;
*)
diff --git a/package/libxml2/Makefile b/package/libxml2/Makefile
index e9115efbb..d6cbb4ffb 100644
--- a/package/libxml2/Makefile
+++ b/package/libxml2/Makefile
@@ -30,7 +30,7 @@ $(eval $(call PKG_template,LIBXML2_PYTHON,libxml2-python,${PKG_VERSION}-${PKG_RE
include $(TOPDIR)/mk/python.mk
TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
-ifeq ($(ADK_PACKAGE_LIBXML2_PYTHON),y)
+ifneq ($(ADK_PACKAGE_LIBXML2_PYTHON),)
CONFIGURE_ARGS+= --with-python=${STAGING_DIR}/usr
else
CONFIGURE_ARGS+= --without-python
diff --git a/package/zip/patches/patch-unix_Makefile b/package/zip/patches/patch-unix_Makefile
new file mode 100644
index 000000000..426f6869e
--- /dev/null
+++ b/package/zip/patches/patch-unix_Makefile
@@ -0,0 +1,33 @@
+--- zip30.orig/unix/Makefile 2008-05-07 08:33:56.000000000 +0200
++++ zip30/unix/Makefile 2011-10-19 22:21:08.000000000 +0200
+@@ -22,7 +22,7 @@ SHELL = /bin/sh
+ LN = ln -s
+
+ # (to use the GNU compiler, change cc to gcc in CC)
+-CC = cc
++CC ?= cc
+ BIND = $(CC)
+ AS = $(CC) -c
+ CPP = /lib/cpp
+@@ -58,7 +58,7 @@ IZ_OUR_BZIP2_DIR = bzip2
+ # LFLAGS1 flags after output file spec, before obj file list
+ # LFLAGS2 flags after obj file list (libraries, etc)
+ CFLAGS_NOOPT = -I. -DUNIX $(LOCAL_ZIP)
+-CFLAGS = -O2 $(CFLAGS_NOOPT)
++CFLAGS ?= -O2 $(CFLAGS_NOOPT)
+ LFLAGS1 =
+ LFLAGS2 = -s
+
+@@ -199,10 +199,10 @@ flags: unix/configure
+ # Generic targets:
+
+ generic: flags
+- eval $(MAKE) $(MAKEF) zips `cat flags`
++ eval $(MAKE) $(MAKEF) zips `cat flags` CC=$(CC)
+
+ generic_gcc:
+- $(MAKE) $(MAKEF) generic CC=gcc CPP="gcc -E"
++ $(MAKE) $(MAKEF) generic CPP="gcc -E" CC=$(CC)
+
+ # AT&T 6300 PLUS (don't know yet how to allocate 64K bytes):
+ att6300nodir:
diff --git a/package/zip/patches/patch-unix_Makefile.orig b/package/zip/patches/patch-unix_Makefile.orig
new file mode 100644
index 000000000..ff185d2d8
--- /dev/null
+++ b/package/zip/patches/patch-unix_Makefile.orig
@@ -0,0 +1,29 @@
+--- zip30.orig/unix/Makefile 2008-05-07 08:33:56.000000000 +0200
++++ zip30/unix/Makefile 2011-10-19 22:20:07.000000000 +0200
+@@ -22,7 +22,7 @@ SHELL = /bin/sh
+ LN = ln -s
+
+ # (to use the GNU compiler, change cc to gcc in CC)
+-CC = cc
++CC ?= cc
+ BIND = $(CC)
+ AS = $(CC) -c
+ CPP = /lib/cpp
+@@ -58,7 +58,7 @@ IZ_OUR_BZIP2_DIR = bzip2
+ # LFLAGS1 flags after output file spec, before obj file list
+ # LFLAGS2 flags after obj file list (libraries, etc)
+ CFLAGS_NOOPT = -I. -DUNIX $(LOCAL_ZIP)
+-CFLAGS = -O2 $(CFLAGS_NOOPT)
++CFLAGS ?= -O2 $(CFLAGS_NOOPT)
+ LFLAGS1 =
+ LFLAGS2 = -s
+
+@@ -202,7 +202,7 @@ generic: flags
+ eval $(MAKE) $(MAKEF) zips `cat flags`
+
+ generic_gcc:
+- $(MAKE) $(MAKEF) generic CC=gcc CPP="gcc -E"
++ $(MAKE) $(MAKEF) generic CPP="gcc -E" CC=$(CC)
+
+ # AT&T 6300 PLUS (don't know yet how to allocate 64K bytes):
+ att6300nodir: