diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-12-06 14:50:57 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-12-06 15:05:33 +0100 |
commit | 4dd9320140988c58abc574e73693fe399450d57c (patch) | |
tree | 4606775b9caadd0bfa2dc29f06d6ff758ffdfc30 /community/minidlna/APKBUILD | |
parent | 1aa57bdbcfaa3564456c98a0fd748ea417d1c157 (diff) | |
download | aports-4dd9320140988c58abc574e73693fe399450d57c.tar.bz2 aports-4dd9320140988c58abc574e73693fe399450d57c.tar.xz |
community/minidlna: move to community and update db dir
moved db dir from /var/cache to /var/lib
added a check in post-upgrade to notify use of this change
Diffstat (limited to 'community/minidlna/APKBUILD')
-rw-r--r-- | community/minidlna/APKBUILD | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/community/minidlna/APKBUILD b/community/minidlna/APKBUILD new file mode 100644 index 0000000000..cab6b58ea9 --- /dev/null +++ b/community/minidlna/APKBUILD @@ -0,0 +1,72 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=minidlna +pkgver=1.1.5 +pkgrel=3 +pkgdesc="A small dlna server" +url="http://sourceforge.net/projects/minidlna/" +arch="all" +license="GPL" +depends= +makedepends=" + bsd-compat-headers + libvorbis-dev + libogg-dev + libid3tag-dev + libexif-dev + libjpeg-turbo-dev + sqlite-dev + ffmpeg-dev + flac-dev + " +install="minidlna.pre-install minidlna.post-upgrade" +subpackages="$pkgname-doc" +pkgusers="$pkgname" +pkggroups="$pkgname" +source="http://downloads.sourceforge.net/project/minidlna/minidlna/$pkgver/minidlna-$pkgver.tar.gz + $pkgname.initd + $pkgname.confd + " + +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --with-os-name="Alpine Linux" \ + --with-db-path=/var/lib/minidlna \ + --with-log-path=/var/log/minidlna \ + || return 1 + make || return 1 +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + install -dm750 -o $pkgusers -g $pkggroups \ + "$pkgdir/var/lib/$pkgname" \ + "$pkgdir/var/log/$pkgname" || return 1 + install -m755 -D "$srcdir/$pkgname.initd" \ + "$pkgdir/etc/init.d/$pkgname" || return 1 + install -m644 -D "$srcdir/$pkgname.confd" \ + "$pkgdir/etc/conf.d/$pkgname" || return 1 + install -m644 -D "$pkgname.conf" \ + "$pkgdir"/etc/$pkgname.conf || return 1 + install -Dm644 "$srcdir"/$pkgname-$pkgver/minidlna.conf.5 \ + "$pkgdir"/usr/share/man/man5/minidlna.conf.5 || return 1 + install -Dm644 "$srcdir"/$pkgname-$pkgver/minidlnad.8 \ + "$pkgdir"/usr/share/man/man8/minidlnad.8 || return 1 +} + +md5sums="1970e553a1eb8a3e7e302e2ce292cbc4 minidlna-1.1.5.tar.gz +6dd1ec5560ac30d7a04244101e912d45 minidlna.initd +59d14c1bf3cd637138bfa58db7255d78 minidlna.confd" +sha256sums="8477ad0416bb2af5cd8da6dde6c07ffe1a413492b7fe40a362bc8587be15ab9b minidlna-1.1.5.tar.gz +251e790bb8adb91b4d00dd47543b9b02409879ade0853ebc3bd0fc0184bd485e minidlna.initd +67603d65c6bd3918255f050cb5cfd6fc1373b024bca1ce728f03491a90d79e19 minidlna.confd" +sha512sums="2a8eaa42fcda6f98648f1726af5cdba6d2358c386440dd0de933364cfbd1ced2fee5f883033e1a5a692b760749beb2c12798020a3591ddcea22663102d4f3dfa minidlna-1.1.5.tar.gz +e16961bb68c004297f1e26422b1d15bd8583ba2e0e36c88902a45573b685993fff88d2d0dae8c624eaeddb0deca614dbc13b8345f34b4c348961c00b05c0df30 minidlna.initd +e209848af0d79069ac989ad61d3be610b4c0c2783a207a50463a25ec3811b04d1da3a2acde54749878bec44e1567874ede827b978d5472c00f6a855663e5cbf8 minidlna.confd" |