diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-01-07 16:37:22 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-01-07 16:37:22 +0200 |
commit | d83dd55b80b5af38a46409f24e4740a149277b93 (patch) | |
tree | d0f6995bc9bcd1fbed62e60507c999be50ba0c86 /core/alpine-baselayout | |
parent | 038446fd80b269d465793962d3ba563c758229b7 (diff) | |
download | aports-d83dd55b80b5af38a46409f24e4740a149277b93.tar.bz2 aports-d83dd55b80b5af38a46409f24e4740a149277b93.tar.xz |
core/alpine-baselayout: git APKBUILD for the development stuff
Diffstat (limited to 'core/alpine-baselayout')
-rw-r--r-- | core/alpine-baselayout/APKBUILD | 70 | ||||
-rw-r--r-- | core/alpine-baselayout/install-D.patch | 11 | ||||
-rw-r--r-- | core/alpine-baselayout/modloop.initd | 62 |
3 files changed, 18 insertions, 125 deletions
diff --git a/core/alpine-baselayout/APKBUILD b/core/alpine-baselayout/APKBUILD index 4321f4654..4a10d3bcf 100644 --- a/core/alpine-baselayout/APKBUILD +++ b/core/alpine-baselayout/APKBUILD @@ -1,63 +1,29 @@ pkgname=alpine-baselayout -pkgver=1.13 -pkgrel=1 +pkgver=2009.01.08 +pkgrel=0 pkgdesc="Alpine base dir structure and init scripts" url=http://dev.alpinelinux.org/alpine/alpine-baselayout depends="uclibc" -source="http://dev.alpinelinux.org/alpine/$pkgname/$pkgname-$pkgver.tar.gz - modloop.initd - install-D.patch - " +#source="http://dev.alpinelinux.org/alpine/$pkgname/$pkgname-$pkgver.tar.gz" license=GPL-2 -build() { - cd "$srcdir/$pkgname-$pkgver" - patch -p1 < ../install-D.patch - make install PREFIX= DESTDIR="$pkgdir" || return 1 - mkdir -p \ - $pkgdir/etc/modules.d \ - $pkgdir/etc/network/if-down.d \ - $pkgdir/etc/network/if-post-down.d \ - $pkgdir/etc/network/if-pre-up.d \ - $pkgdir/etc/network/if-up.d \ - $pkgdir/etc/periodic/15min \ - $pkgdir/etc/periodic/hourly \ - $pkgdir/etc/periodic/daily \ - $pkgdir/etc/periodic/weekly \ - $pkgdir/etc/periodic/monthly \ - $pkgdir/media/cdrom \ - $pkgdir/media/floppy \ - $pkgdir/media/usb \ - $pkgdir/mnt \ - $pkgdir/proc \ - $pkgdir/sys \ - $pkgdir/dev \ - $pkgdir/home \ - $pkgdir/root \ - $pkgdir/usr/bin \ - $pkgdir/usr/sbin \ - $pkgdir/usr/local/bin \ - $pkgdir/usr/local/sbin \ - $pkgdir/var/lib/misc \ - $pkgdir/var/log \ - $pkgdir/var/run \ - $pkgdir/var/lock/subsys \ - $pkgdir/var/tmp \ - $pkgdir/tmp - - chmod 0700 "$pkgdir/root" - chmod 1777 "$pkgdir/tmp" +_gitname=$pkgname +_gitroot=git://dev.alpinelinux.org/$_gitname - ln -s /.alpine-release "$pkgdir"/etc/alpine-release - ln -s /proc/mounts $pkgdir/etc/mtab +build() { + cd "$srcdir" + msg "Connecting to GIT server..." - echo "deadline-iosched" > $pkgdir/etc/modules - echo "af_packet" >> $pkgdir/etc/modules + if [ -d $_gitname ]; then + cd $_gitname && git pull + else + git clone $_gitroot + fi - install -m 755 $srcdir/modloop.initd $pkgdir/etc/init.d/modloop + cd $srcdir/$_gitname + git checkout -b $pkgver @{`echo $pkgver | tr . -`} || return 1 + make clean + make + make install PREFIX= DESTDIR="$pkgdir" || return 1 } - -md5sums="76247daeb45cf873069ef7363d69e2a8 alpine-baselayout-1.13.tar.gz -55a86bd1eca2cccd6cb6f62b78ba60ae modloop.initd -bcb24ca480935cb11116a6512f07fa63 install-D.patch" diff --git a/core/alpine-baselayout/install-D.patch b/core/alpine-baselayout/install-D.patch deleted file mode 100644 index df9f6af5f..000000000 --- a/core/alpine-baselayout/install-D.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- alpine-baselayout-1.12/init.d/Makefile.orig Wed Nov 5 10:09:38 2008 -+++ alpine-baselayout-1.12/init.d/Makefile Wed Nov 5 10:10:57 2008 -@@ -36,7 +36,7 @@ - install -m 0755 -d $(DESTDIR)/etc/init.d - - for i in $(SCRIPTS) ; do \ -- install -m 755 -D $$i $(DESTDIR)/etc/init.d/$$i ;\ -+ install -m 755 $$i $(DESTDIR)/etc/init.d/$$i ;\ - done - - clean: diff --git a/core/alpine-baselayout/modloop.initd b/core/alpine-baselayout/modloop.initd deleted file mode 100644 index a8b39bf34..000000000 --- a/core/alpine-baselayout/modloop.initd +++ /dev/null @@ -1,62 +0,0 @@ -#!/sbin/runscript - -# script that will mount image with modules - -# read kernel options -for i in `cat /proc/cmdline` ; do - case $i in - *=*) eval KOPT_$i ;; - *) eval KOPT_$i=yes ;; - esac -done - -find_media() { - ALPINE_DEV=${KOPT_alpine_dev%%:*} - ALPINE_MNT=`awk '/^\/dev\/'$ALPINE_DEV'/ { print $2 }' /etc/fstab` -} - -start() { - local rc= - local imgdir=$(dirname ${KOPT_BOOT_IMAGE:-""}) - find_media - if [ -z "$ALPINE_DEV" ] ; then - ebegin "Skipping mount media with modules (specify with alpine_dev)" - eend 0 - return 0 - fi - - if [ -n "$KOPT_modloop" ]; then - CMG="$ALPINE_MNT/$KOPT_modloop" - else - CMG=$ALPINE_MNT/$imgdir/modloop.cmg - fi - ebegin "Mounting loopback device for kernel modules" - mount $ALPINE_MNT >/dev/null 2>&1 &&\ - mkdir -p /.modloop &&\ - if [ ! -f "$CMG" ] ; then - CMG=$ALPINE_MNT/$imgdir/modules.cmg - fi &&\ - mount -o loop,ro -t cramfs $CMG /.modloop - rc=$? - if [ "$rc" = 0 ]; then - rm -rf /lib/modules - ln -sf /.modloop/modules /lib - fi - # copy firmware if there are any - if [ -d $ALPINE_MNT/firmware ]; then - mkdir -p /lib/firmware - cp $ALPINE_MNT/firmware/* /lib/firmware/ - fi - eend $rc -} - -stop() { - find_media - if [ "$ALPINE_DEV" ] ; then - ebegin "Unmounting loopback device for kernel modules" - umount -d /.modloop &&\ - umount $ALPINE_MNT 2>/dev/null - eend $? - fi -} - |