aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libnetcf
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-12-14 10:14:41 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-12-14 10:14:55 +0000
commitf4377b771e78b3fa94a9e54f4f3cb93d9d5bff29 (patch)
tree9661c2afbbbae4b8121f3cb1ca8d44a284aca783 /testing/libnetcf
parent7d40d14a615baa5d827a10e9f7f7b589ef1666bc (diff)
downloadaports-f4377b771e78b3fa94a9e54f4f3cb93d9d5bff29.tar.bz2
aports-f4377b771e78b3fa94a9e54f4f3cb93d9d5bff29.tar.xz
testing/libnetcf: new aport
Diffstat (limited to 'testing/libnetcf')
-rw-r--r--testing/libnetcf/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/libnetcf/APKBUILD b/testing/libnetcf/APKBUILD
new file mode 100644
index 0000000000..5bd324f892
--- /dev/null
+++ b/testing/libnetcf/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor:
+# Maintainer: Leonardo Arena <rnalrd@gmail.com>
+pkgname=libnetcf
+_realname=netcf
+pkgver=0.1.7
+pkgrel=0
+pkgdesc="Cross-platform network configuration library"
+arch="x86 x86_64"
+url="https://fedorahosted.org/released/netcf"
+license="LGPLv2"
+depends=
+makedepends="augeas-dev libgcrypt-dev libnl-dev libxml2-dev libxslt-dev
+ pkgconfig readline-dev wget"
+install=
+subpackages="$pkgname-dev"
+source="https://fedorahosted.org/released/$_realname/$_realname-0.1.7.tar.gz"
+
+_builddir="$srcdir/$_realname-$pkgver"
+
+#prepare() {
+# cd "$_builddir"
+# patch -p1 < ../netcf-0.1.0-fix-initialization-of-libxslt.patch || return 1
+#}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+
+ # remove the 2 lines below (and this) if there is no init.d script
+ # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+}
+
+md5sums="8e313b623c907eb035cf3948b71fecc2 netcf-0.1.7.tar.gz"