Mail archive
alpine-aports

[alpine-aports] [PATCH 5/5] New package: main/mdevd

From: Laurent Bercot <ska-devel_at_skarnet.org>
Date: Mon, 2 Apr 2018 23:09:13 +0200

---
 main/mdevd/APKBUILD | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 main/mdevd/APKBUILD
diff --git a/main/mdevd/APKBUILD b/main/mdevd/APKBUILD
new file mode 100644
index 0000000000..d6e72236c6
--- /dev/null
+++ b/main/mdevd/APKBUILD
_at_@ -0,0 +1,39 @@
+# Maintainer: Laurent Bercot <ska-devel_at_skarnet.org>
+# Contributor: Laurent Bercot <ska-devel_at_skarnet.org>
+pkgname=mdevd
+pkgver=0.1.0.1
+pkgrel=0
+pkgdesc="A netlink-listening device manager similar to mdev"
+url="https://skarnet.org/software/$pkgname/"
+arch="all"
+license="ISC"
+options="!check"
+makedepends="skalibs-dev"
+subpackages="$pkgname-doc"
+source="https://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+# For now this APKBUILD is pure mechanism.
+# A later version of the APKBUILD will install mdevd as device manager,
+# replacing busybox mdev.
+
+build() {
+	cd "$builddir"
+	./configure \
+		--enable-shared \
+		--enable-static \
+		--disable-allstatic
+	make
+}
+
+package() {
+	cd "$builddir"
+	make DESTDIR="$pkgdir" install
+}
+
+doc() {
+	default_doc
+	mkdir -p "$subpkgdir/usr/share/doc"
+	cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
+}
+sha512sums="c2260a90bc99f468ed4f8de06982fdae12bae50f25e3be0c593311b0d5e856d00aca3768fac84089a13065330aa92b21f8e1304dd6d46d76e81e2f0f20f17b3e  mdevd-0.1.0.1.tar.gz"
-- 
2.15.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Mon Apr 02 2018 - 23:09:13 GMT