blob: 14865fb73b971822a851f09894519c36a9b13c32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
pkgname=alpine-baselayout
pkgver=1.12.1
pkgdesc="Alpine base dir structure and init scripts"
url=http://dev.alpinelinux.org/alpine/alpine-baselayout
source="http://dev.alpinelinux.org/alpine/$pkgname/$pkgname-$pkgver.tar.gz
modloop.initd
install-D.patch
"
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"
ln -s /.alpine-release "$pkgdir"/etc/alpine-release
ln -s /proc/mounts $pkgdir/etc/mtab
echo "deadline-iosched" > $pkgdir/etc/modules
echo "af_packet" >> $pkgdir/etc/modules
cp $srcdir/modloop.initd $pkgdir/etc/init.d/modloop
}
md5sums="d11dd18253e4c4609012517912c7bd69 alpine-baselayout-1.12.1.tar.gz
20829b8111829da1441da95cb5370ddf modloop.initd
bcb24ca480935cb11116a6512f07fa63 install-D.patch"
|