Added --enable-rule-generator, usher for mkinitramfs, and dependencies
This commit is contained in:
5
Makefile
5
Makefile
@@ -8,12 +8,12 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
DEPENDS =
|
DEPENDS = glibc,kmod,util-linux,xz,zlib
|
||||||
ARCH = x86_64
|
ARCH = x86_64
|
||||||
URL = http://www.gentoo.org/proj/en/eudev/
|
URL = http://www.gentoo.org/proj/en/eudev/
|
||||||
DESC = eudev is a fork of system-udev with the goal of obtaining better \
|
DESC = eudev is a fork of system-udev with the goal of obtaining better \
|
||||||
compatibility with existing software
|
compatibility with existing software
|
||||||
SNAPVER = sr0
|
SNAPVER = sr1
|
||||||
|
|
||||||
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||||
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||||
@@ -60,6 +60,7 @@ $(SRCDIR)/config.log: $(SRCDIR)/configure
|
|||||||
--enable-split-usr \
|
--enable-split-usr \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--enable-manpages \
|
--enable-manpages \
|
||||||
|
--enable-rule-generator \
|
||||||
--build=x86_64-snap-linux-gnu \
|
--build=x86_64-snap-linux-gnu \
|
||||||
--host=x86_64-snap-linux-gnu \
|
--host=x86_64-snap-linux-gnu \
|
||||||
--target=x86_64-snap-linux-gnu
|
--target=x86_64-snap-linux-gnu
|
||||||
|
|||||||
34
SNAP/usher
Executable file
34
SNAP/usher
Executable file
@@ -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
|
||||||
Reference in New Issue
Block a user