diff --git a/Makefile b/Makefile index f379729..731a434 100644 --- a/Makefile +++ b/Makefile @@ -8,12 +8,12 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -DEPENDS = +DEPENDS = glibc,kmod,util-linux,xz,zlib ARCH = x86_64 URL = http://www.gentoo.org/proj/en/eudev/ DESC = eudev is a fork of system-udev with the goal of obtaining better \ compatibility with existing software -SNAPVER = sr0 +SNAPVER = sr1 ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') @@ -60,6 +60,7 @@ $(SRCDIR)/config.log: $(SRCDIR)/configure --enable-split-usr \ --disable-static \ --enable-manpages \ + --enable-rule-generator \ --build=x86_64-snap-linux-gnu \ --host=x86_64-snap-linux-gnu \ --target=x86_64-snap-linux-gnu diff --git a/SNAP/usher b/SNAP/usher new file mode 100755 index 0000000..372b766 --- /dev/null +++ b/SNAP/usher @@ -0,0 +1,34 @@ +#!/bin/bash + +set -e + +case $1 in + preinst) + exit 0 + ;; + postinst) + KERNEL_VER=`ls -C1rt ${TARGET}/boot/vmlinuz*|sed 's/.*vmlinuz-//'` + + if [[ ${TARGET} ]]; then + echo "Running within ${TARGET} for kernel $KERNEL_VER" + if ! mountpoint -q ${TARGET}/proc; then + mount -t proc none ${TARGET}/proc + fi + + chroot ${TARGET} /bin/bash -c "/sbin/mkinitramfs $KERNEL_VER" + + if mountpoint -q ${TARGET}/proc; then + umount ${TARGET}/proc + fi + else + echo "Running for kernel $KERNEL_VER" + mkinitramfs $KERNEL_VER + fi + ;; + prerm) + exit 0 + ;; + postrm) + exit 0 + ;; +esac