testing/haproxy: add package() function

This commit is contained in:
Natanael Copa 2010-12-14 10:11:42 +00:00
parent 56da828f01
commit eec9fb5586

View File

@ -16,12 +16,13 @@ source="http://haproxy.1wt.eu/download/1.3/src/$pkgname-$pkgver.tar.gz
build() {
cd "$srcdir/$pkgname-$pkgver"
make TARGET=linux26 || return 1
make DESTDIR="$pkgdir" PREFIX=/usr install
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" PREFIX=/usr install
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
# install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
md5sums="e37046e0cb2f407d92c41d7731d1dd10 haproxy-1.3.20.tar.gz