aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-07-16 14:22:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-07-17 07:57:29 +0000
commit3bc33b297bb4430a52c7632757b8dc73c1eb26ca (patch)
treefa09d265ed9098de801823529487c493a91564d6 /main
parentf22918f24104fc43b56b31f3b051dfe4b14e22f4 (diff)
downloadaports-3bc33b297bb4430a52c7632757b8dc73c1eb26ca.tar.bz2
aports-3bc33b297bb4430a52c7632757b8dc73c1eb26ca.tar.xz
main/eudev (and deps): move from testing
Diffstat (limited to 'main')
-rw-r--r--main/eudev/APKBUILD83
-rw-r--r--main/udev-init-scripts/APKBUILD41
2 files changed, 124 insertions, 0 deletions
diff --git a/main/eudev/APKBUILD b/main/eudev/APKBUILD
new file mode 100644
index 0000000000..92036a7ab1
--- /dev/null
+++ b/main/eudev/APKBUILD
@@ -0,0 +1,83 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=eudev
+pkgver=3.1.2
+pkgrel=0
+pkgdesc="OpenRC compatible fork of systemd-udev"
+url="https://wiki.gentoo.org/wiki/Project:Eudev"
+arch="all"
+license="GPLv2"
+depends="udev-init-scripts"
+depends_dev=""
+makedepends="$depends_dev gperf glib-dev linux-headers
+ gobject-introspection-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libgudev $pkgname-libs"
+source="http://dev.gentoo.org/~blueness/eudev/eudev-$pkgver.tar.gz"
+
+_builddir="$srcdir"/eudev-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ # we need disable kmod til busybox depmod generates binary formats:
+ # modules.dep.bin modules.alias.bin modules.symbols.bin
+ # modules.builtin.bin
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --sysconfdir=/etc \
+ --with-rootprefix= \
+ --with-rootrundir=/run \
+ --with-rootlibexecdir=/lib/udev \
+ --libdir=/usr/lib \
+ --enable-split-usr \
+ --enable-manpages \
+ --disable-hwdb \
+ --disable-kmod \
+ --exec-prefix=/ \
+ --enable-gudev \
+ --enable-introspection \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" sharepkgconfigdir=/usr/lib/pkgconfig \
+ install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+libs() {
+ pkgdesc="Dynamic library to access udev device information"
+ replaces="libudev"
+ depends=""
+ mkdir -p "$subpkgdir"/lib
+ for i in "$pkgdir"/usr/lib/libudev.so.*; do
+ mv $i "$subpkgdir"/lib || return 1
+ ln -s ../../lib/${i##*/} "$pkgdir"/usr/lib/${i##*/} || return 1
+ done
+}
+
+libgudev() {
+ pkgdesc="A GObject wrapper of the library gudev"
+ replaces="libgudev"
+ depends=""
+ mkdir -p "$subpkgdir"/usr/lib || return 1
+ mv "$pkgdir"/usr/lib/libgudev* "$subpkgdir"/usr/lib/ || return 1
+ mv "$pkgdir"/usr/lib/girepository-* \
+ "$subpkgdir"/usr/lib/
+}
+
+
+md5sums="07ab33fe310d250f06fc28f010e3fde2 eudev-3.1.2.tar.gz"
+sha256sums="4393b69e93dd8117defde6519b199d479f9d051f52061157a1a7a41b8fe10273 eudev-3.1.2.tar.gz"
+sha512sums="d9aeb37a163ce4a0c116f75a927b4b99f8445d06624fbb3c28ade18f3effd8c54af5a4a52477c31a0452822a3dc0901468263195256e9dbf79d2ef08cf46f2b6 eudev-3.1.2.tar.gz"
diff --git a/main/udev-init-scripts/APKBUILD b/main/udev-init-scripts/APKBUILD
new file mode 100644
index 0000000000..0bdda5264f
--- /dev/null
+++ b/main/udev-init-scripts/APKBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=udev-init-scripts
+pkgver=30
+pkgrel=1
+pkgdesc="udev startup scripts for openrc"
+url="https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-fs/udev-init-scripts/"
+arch="noarch"
+license="GPLv2"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+replaces="udev"
+install="$pkgname.post-install $pkgname.post-upgrade"
+subpackages=""
+source="http://dev.gentoo.org/~williamh/dist/udev-init-scripts-$pkgver.tar.gz"
+
+_builddir="$srcdir"/udev-init-scripts-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="2425702e7706b720866e9fc1cc4f9f34 udev-init-scripts-30.tar.gz"
+sha256sums="4de998d68e28f8ce4c1d4c9955aec0fa4cfe84673cbf3bfe1be71a1e9918693f udev-init-scripts-30.tar.gz"
+sha512sums="bf9ec69d9fb9edbe37f3dec8e1d5c828ea63591382de33818297ec5e37490c2dd709a8e32251fba36a816952c98af49172c7c09f3252712ddc51820205c4efdd udev-init-scripts-30.tar.gz"