aboutsummaryrefslogtreecommitdiffstats
path: root/community/udevil
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2016-08-18 20:46:53 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-21 22:24:04 +0200
commit5c9f3ca3e307be53b45beeed2ce1626f38008625 (patch)
tree919836fe454e953f46685adf8228b0401280d4b6 /community/udevil
parent6a00a953ba02bab6440a2c784e7db37c6eaeace1 (diff)
downloadaports-5c9f3ca3e307be53b45beeed2ce1626f38008625.tar.bz2
aports-5c9f3ca3e307be53b45beeed2ce1626f38008625.tar.xz
testing/[various]: move to community
albatross-themes apk-post-messages autossh bitcoin btrbk entr ffmpegthumbnailer firejail firetools fwsnort gnome-colors imapsync inetutils-syslogd inotify-tools-inc isync junit ktsuss letsencrypt-nosudo libmbim libndp libqmi libteam mini-sendmail modemmanager namecoin networkmanager nginx-naxsi numix-themes nxapi opencl-headers opencl-icd-loader opus-tools perl-authen-ntlm perl-bit-vector perl-data-uniqid perl-file-copy-recursive perl-getopt-argvfile perl-io-tee perl-iptables-chainmgr perl-iptables-parse perl-module-scandeps perl-par-dist perl-par-packer perl-par perl-uri-escape psad py-crcmod py-graphviz py-lz4 py-opencl py-opengl-accelerate runit secpwgen secure-delete socklog spacefm tinyssh udevil virt-viewer virtualbricks whois wrk xpra zram-init
Diffstat (limited to 'community/udevil')
-rw-r--r--community/udevil/APKBUILD61
-rw-r--r--community/udevil/udevil.pre-install5
2 files changed, 66 insertions, 0 deletions
diff --git a/community/udevil/APKBUILD b/community/udevil/APKBUILD
new file mode 100644
index 0000000000..159b0d7a3e
--- /dev/null
+++ b/community/udevil/APKBUILD
@@ -0,0 +1,61 @@
+# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
+# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
+pkgname=udevil
+pkgver=0.4.4
+pkgrel=2
+pkgdesc="Mount / unmount removable devices without a password (udisks alternative)"
+url="http://ignorantguru.github.io/udevil"
+arch="all"
+license="GPL3+"
+makedepends="$depends_dev glib-dev eudev-dev intltool"
+install="$pkgname.pre-install"
+subpackages="$pkgname-lang $pkgname-doc"
+pkggroups="plugdev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/IgnorantGuru/$pkgname/archive/$pkgver.tar.gz"
+
+_builddir="$srcdir"/$pkgname-$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"
+ ./configure \
+ --prefix=/usr \
+ --disable-systemd || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make -j1 DESTDIR="$pkgdir" install || return 1
+ chown root:plugdev "$pkgdir"/usr/bin/udevil || return 1
+ chmod u+s,go-s,o-x "$pkgdir"/usr/bin/udevil # remove SUID bit
+ mkdir -p "$pkgdir/usr/share/apk-tools/$pkgname"
+# chmod ugo-s,ugo+x "$pkgdir"/usr/bin/udevil #remove SUID bit completely
+ # post-install message
+ mkdir -p "$pkgdir/usr/share/doc/$pkgname"
+ cat > $pkgdir/usr/share/doc/$pkgname/README.alpine <<EOF
+To mount / unmount devices without the root password: add your user account to the 'plugdev' group.
+
+Optional dependencies:
+
+zenity: (devmon popups)
+davfs2: (mount WebDAV resources)
+cifs-utils: (mounting samba shares)
+curlftpfs: (mounting ftp shares)
+nfs-utils: (mounting nfs shares)
+sshfs-fuse: (mounting sftp shares)
+eject: (eject via devmon)
+EOF
+}
+
+md5sums="281aa065d92c679cb41728069e72b272 udevil-0.4.4.tar.gz"
+sha256sums="ad2fd8375bd62622718a04235e9772119459089938dbb78e657955e595822b7c udevil-0.4.4.tar.gz"
+sha512sums="adce4916e06d1cc4965521abbcbc2901e53930691167f431cb18e28d3ef8bde740e95a6a5f40dfc58dfd7b4b661b4475d3dd2b6174a5d7a55ae7c65629b82327 udevil-0.4.4.tar.gz"
diff --git a/community/udevil/udevil.pre-install b/community/udevil/udevil.pre-install
new file mode 100644
index 0000000000..9d4b1c3767
--- /dev/null
+++ b/community/udevil/udevil.pre-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+addgroup -S plugdev 2>/dev/null
+
+exit 0