diff options
Diffstat (limited to 'community/ushare')
-rw-r--r-- | community/ushare/PKGBUILD | 17 | ||||
-rw-r--r-- | community/ushare/ushare.service | 11 |
2 files changed, 21 insertions, 7 deletions
diff --git a/community/ushare/PKGBUILD b/community/ushare/PKGBUILD index 5d5126cdc..597b1541f 100644 --- a/community/ushare/PKGBUILD +++ b/community/ushare/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 65329 2012-02-21 01:38:24Z spupykin $ +# $Id: PKGBUILD 75096 2012-08-13 19:22:01Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Maintainer: Kessia 'even' Pinheiro <kessiapinheiro at gmail.com> # Contributor: kastor <kastor@fobos.org.ar> pkgname=ushare pkgver=1.1a -pkgrel=17 +pkgrel=18 pkgdesc="A free UPnP A/V Media Server for Linux" url="http://ushare.geexbox.org" license=('GPL2') @@ -18,12 +18,14 @@ source=("http://ushare.geexbox.org/releases/${pkgname}-${pkgver}.tar.bz2" "ushare" "upnp-build-fix.patch" "ushare-config.patch" - "segfault.patch") + "segfault.patch" + "ushare.service") md5sums=('5bbcdbf1ff85a9710fa3d4e82ccaa251' 'e3cf0a44b0280da4966177c21e49361c' '32c29f9f673e8b3a3d9e7bf5e60febbc' '5243475c0cebc5db49296b2f3691085b' - '0b0fbf5d103f0ebb72716cbad0b28ffa') + '0b0fbf5d103f0ebb72716cbad0b28ffa' + 'db6187257b4623ef155b5575526d5d87') build() { cd ${srcdir}/${pkgname}-${pkgver} @@ -42,12 +44,13 @@ package() { cd ${srcdir}/${pkgname}-${pkgver} make DESTDIR=${pkgdir} install rm -rf ${pkgdir}/etc/${pkgname}/init.d - install -m 0755 -D ${srcdir}/ushare ${pkgdir}/etc/rc.d/ushare - install -d -m 0755 ${pkgdir}/etc/conf.d/ + install -Dm0755 ${srcdir}/ushare ${pkgdir}/etc/rc.d/ushare + install -dm0755 ${pkgdir}/etc/conf.d/ cat >${pkgdir}/etc/conf.d/ushare <<EOF #PARAMS="-c /tmp -i eth0" PARAMS= USHARE_USER=ushare EOF - install -D -m0644 src/ushare.1 $pkgdir/usr/share/man/man1/ushare.1 + install -Dm0644 src/ushare.1 $pkgdir/usr/share/man/man1/ushare.1 + install -Dm0644 $srcdir/ushare.service $pkgdir/usr/lib/systemd/system/ushare.service } diff --git a/community/ushare/ushare.service b/community/ushare/ushare.service new file mode 100644 index 000000000..ba6719b8b --- /dev/null +++ b/community/ushare/ushare.service @@ -0,0 +1,11 @@ +[Unit] +Description=ushare +After=network.target + +[Service] +EnvironmentFile=/etc/conf.d/ushare +ExecStart=/usr/bin/ushare -D -x --cfg=/etc/ushare/ushare.conf +Type=forking + +[Install] +WantedBy=multi-user.target |