diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-26 14:03:37 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-26 14:05:51 +0000 |
commit | 878a7a8ce20fefa96d991a7f3744b433ca1bbba2 (patch) | |
tree | 545eaec3de948f28bda0f8d2b69c1772c9df885a | |
parent | 229ead728746f8d7ad8f03bdadf975de3a985f1c (diff) | |
download | alpine_aports-878a7a8ce20fefa96d991a7f3744b433ca1bbba2.tar.bz2 alpine_aports-878a7a8ce20fefa96d991a7f3744b433ca1bbba2.tar.xz alpine_aports-878a7a8ce20fefa96d991a7f3744b433ca1bbba2.zip |
main/alpine-conf: bugfix for setup-disk
(cherry picked from commit 85c7ebe3d5c03a151d18135ebcda83f7a57fdcd0)
-rw-r--r-- | main/alpine-conf/APKBUILD | 13 | ||||
-rw-r--r-- | main/alpine-conf/setup-disk-fix.patch | 19 |
2 files changed, 29 insertions, 3 deletions
diff --git a/main/alpine-conf/APKBUILD b/main/alpine-conf/APKBUILD index 1f4bbf3fd9..239a9f6ae8 100644 --- a/main/alpine-conf/APKBUILD +++ b/main/alpine-conf/APKBUILD | |||
@@ -1,14 +1,20 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
2 | pkgname=alpine-conf | 2 | pkgname=alpine-conf |
3 | pkgver=2.3 | 3 | pkgver=2.3 |
4 | pkgrel=0 | 4 | pkgrel=1 |
5 | pkgdesc="Alpine configuration management scripts" | 5 | pkgdesc="Alpine configuration management scripts" |
6 | url=http://git.alpinelinux.org/cgit/$pkgname | 6 | url=http://git.alpinelinux.org/cgit/$pkgname |
7 | depends="openrc" | 7 | depends="openrc" |
8 | source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2" | 8 | source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2 |
9 | setup-disk-fix.patch" | ||
9 | license="GPL-2" | 10 | license="GPL-2" |
10 | 11 | ||
11 | _builddir="$srcdir"/$pkgname-$pkgver | 12 | _builddir="$srcdir"/$pkgname-$pkgver |
13 | prepare() { | ||
14 | cd "$_builddir" | ||
15 | patch -p1 -i "$srcdir"/setup-disk-fix.patch | ||
16 | } | ||
17 | |||
12 | build() { | 18 | build() { |
13 | cd "$_builddir" | 19 | cd "$_builddir" |
14 | make || return 1 | 20 | make || return 1 |
@@ -21,4 +27,5 @@ package() { | |||
21 | ln -s lbu "$pkgdir"/sbin/lbu_$i | 27 | ln -s lbu "$pkgdir"/sbin/lbu_$i |
22 | done | 28 | done |
23 | } | 29 | } |
24 | md5sums="9e7b7602a16fb64a10ded850c508d412 alpine-conf-2.3.tar.bz2" | 30 | md5sums="9e7b7602a16fb64a10ded850c508d412 alpine-conf-2.3.tar.bz2 |
31 | 27b009c1193e396ee145f59cd3844a2c setup-disk-fix.patch" | ||
diff --git a/main/alpine-conf/setup-disk-fix.patch b/main/alpine-conf/setup-disk-fix.patch new file mode 100644 index 0000000000..2fa7aec461 --- /dev/null +++ b/main/alpine-conf/setup-disk-fix.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | commit e149170d4736017c76b09625fa9a4b6a90b5e3a3 | ||
2 | Author: Natanael Copa <ncopa@alpinelinux.org> | ||
3 | Date: Wed May 26 13:59:25 2010 +0000 | ||
4 | |||
5 | setup-disk: fix typo in the option handling | ||
6 | |||
7 | diff --git a/setup-disk.in b/setup-disk.in | ||
8 | index 7a485b8..aa4a92f 100644 | ||
9 | --- a/setup-disk.in | ||
10 | +++ b/setup-disk.in | ||
11 | @@ -401,7 +401,7 @@ while getopts "hk:o:r" opt; do | ||
12 | *) usage;; | ||
13 | esac | ||
14 | done | ||
15 | -shift $(( OPTIND - 1)) | ||
16 | +shift $(( $OPTIND - 1)) | ||
17 | |||
18 | if [ -d "$1" ]; then | ||
19 | # install to given mounted root | ||