aboutsummaryrefslogtreecommitdiffstats
path: root/main/oidentd
diff options
context:
space:
mode:
Diffstat (limited to 'main/oidentd')
-rw-r--r--main/oidentd/APKBUILD13
1 files changed, 11 insertions, 2 deletions
diff --git a/main/oidentd/APKBUILD b/main/oidentd/APKBUILD
index b16a23344c..cace1bd24c 100644
--- a/main/oidentd/APKBUILD
+++ b/main/oidentd/APKBUILD
@@ -15,9 +15,14 @@ oidentd.conf
oidentd.initd
oidentd.confd"
-build() {
- cd "$srcdir/$pkgname-$pkgver"
+_builddir="$srcdir/$pkgname-$pkgver"
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+build() {
+ cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -27,6 +32,10 @@ build() {
--infodir=/usr/share/info \
|| return 1
make || return 1
+}
+
+package() {
+ cd "$_builddir"
make DESTDIR="$pkgdir" install
install -D -m755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -D -m644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname