blob: 246fc75074c8dd5a37078c982d65c4c40b444095 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=debootstrap
pkgver=1.0.32
pkgrel=0
pkgdesc="Debian/Ubuntu bootstrap scripts"
url="http://packages.qa.debian.org/d/debootstrap.html"
arch="all"
license="GPL-2"
depends="dpkg"
source="http://ftp.de.debian.org/debian/pool/main/d/debootstrap/debootstrap_$pkgver.tar.gz
pkgdetails.c"
_builddir="$srcdir"/$pkgname
build() {
cd "$_builddir"
gcc $CFLAGS $LDFLAGS -o pkgdetails "$srcdir"/pkgdetails.c
}
package() {
cd "$_builddir"
# create devices.tar.gz
rm -rf dev
mkdir -p dev
chown 0:0 dev
chmod 755 dev
( cd dev
ln -s /proc/self/fd fd
ln -s fd/0 stdin
ln -s fd/1 stdout
ln -s fd/2 stderr
mknod full c 1 7
mknod null c 1 3
mknod ptmx c 5 2
mkdir pts shm
mknod random c 1 8
mknod tty c 5 0
mknod urandom c 1 9
mknod zero c 1 5
)
tar -czf devices.tar.gz dev
rm -rf dev
make DESTDIR="$pkgdir" install || return
install -Dm755 pkgdetails "$pkgdir"/usr/lib/debootstrap/pkgdetails
}
md5sums="3538ffa710f0d365dcbdc0dc18af2d4c debootstrap_1.0.32.tar.gz
cff11c88c5176c0ccb714e2d378f4d35 pkgdetails.c"
|