diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-24 17:31:27 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-24 17:32:34 +0000 |
commit | aee87374fa7161660ede5d60231f562e028bd279 (patch) | |
tree | 927276e1541999af44127cad6bfe7b4094274b35 /main/debootstrap/APKBUILD | |
parent | 6236ed9a188fa2c0d8a7ede1ca08e9dd9521fea4 (diff) | |
download | aports-aee87374fa7161660ede5d60231f562e028bd279.tar.bz2 aports-aee87374fa7161660ede5d60231f562e028bd279.tar.xz |
main/debootstrap: new aport
Debian/Ubuntu bootstrap scripts
http://packages.qa.debian.org/d/debootstrap.html
fixes #291
Diffstat (limited to 'main/debootstrap/APKBUILD')
-rw-r--r-- | main/debootstrap/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/main/debootstrap/APKBUILD b/main/debootstrap/APKBUILD new file mode 100644 index 000000000..9bd4502ce --- /dev/null +++ b/main/debootstrap/APKBUILD @@ -0,0 +1,45 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=debootstrap +pkgver=1.0.22 +pkgrel=0 +pkgdesc="Debian/Ubuntu bootstrap scripts" +url="http://packages.qa.debian.org/d/debootstrap.html" +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-$pkgver +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="d3fbb612b381841a616a804c946a344a debootstrap_1.0.22.tar.gz +cff11c88c5176c0ccb714e2d378f4d35 pkgdetails.c" |