From 4b29650cdf482ed0d27245473d7eda5324a67094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Thu, 19 Oct 2017 11:45:19 +0200 Subject: community/ympd: move from main --- community/ympd/APKBUILD | 55 +++++++++++++++++++++++++++++++++++++++++ community/ympd/ympd.confd | 2 ++ community/ympd/ympd.initd | 18 ++++++++++++++ community/ympd/ympd.pre-install | 5 ++++ main/ympd/APKBUILD | 55 ----------------------------------------- main/ympd/ympd.confd | 2 -- main/ympd/ympd.initd | 18 -------------- main/ympd/ympd.pre-install | 5 ---- 8 files changed, 80 insertions(+), 80 deletions(-) create mode 100644 community/ympd/APKBUILD create mode 100644 community/ympd/ympd.confd create mode 100644 community/ympd/ympd.initd create mode 100644 community/ympd/ympd.pre-install delete mode 100644 main/ympd/APKBUILD delete mode 100644 main/ympd/ympd.confd delete mode 100644 main/ympd/ympd.initd delete mode 100644 main/ympd/ympd.pre-install diff --git a/community/ympd/APKBUILD b/community/ympd/APKBUILD new file mode 100644 index 0000000000..f0d6db48c8 --- /dev/null +++ b/community/ympd/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Carlo Landmeter +# Maintainer: Natanael Copa +pkgname=ympd +pkgver=1.3.0 +pkgrel=4 +pkgdesc="A standalone MPD Web GUI" +url="http://www.ympd.org/" +arch="all" +license="GPL2" +depends="" +depends_dev="" +makedepends="$depends_dev cmake libmpdclient-dev libressl-dev" +install="$pkgname.pre-install" +subpackages="$pkgname-doc" +source="ympd-${pkgver}.tar.gz::https://github.com/notandy/ympd/archive/v$pkgver.tar.gz + $pkgname.initd + $pkgname.confd" + +_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 + mkdir build || return 1 +} + +build() { + cd "$_builddir"/build + cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr + make || return 1 +} + +package() { + cd "$_builddir"/build + make DESTDIR="$pkgdir/" install || return 1 + install -D -m755 "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/$pkgname || return 1 + install -D -m644 "$srcdir"/$pkgname.confd \ + "$pkgdir"/etc/conf.d/$pkgname || return 1 +} + +md5sums="90206af29c42af66fc900054816aee24 ympd-1.3.0.tar.gz +d61ddfc43c152dc019d96723efa3e52f ympd.initd +eeb049caa36608e7b059ab258c228b0e ympd.confd" +sha256sums="d9f68920cd93d1cfa971e1d7b9162a2b1724909bc9753c1338cecb3688d234d5 ympd-1.3.0.tar.gz +99fe804df79d9ce1f804ef05fa5c75b24c05c566313297e2dd65f9f8c06c1204 ympd.initd +045067b2a6ffd38cefc6f4a813d8095d45d349bf6bca5e45b8eaadaf1f84bc24 ympd.confd" +sha512sums="7e2bd4124b0e7692e2528e9fc50955d1b357ba042d8c97941160ad31ee0c89bc53b349195b45d27ce77aaa954bc01aceba1a30cdb89d9f58644a0b4934498a16 ympd-1.3.0.tar.gz +38ce9d2d168670474a8d8931fde592e7f45ade486fe8ce2fbd7689fa2a121eefd7cbc962be3607d71f090897733ec4e41d67f4703481525bc59fc56b99833bac ympd.initd +3e6e83877baf84762a518cc079992dd94614d59faa26600d4e34faa09285f0f0a7de8f4408488b4d017bf2ffe90f03ac1f0c3670bb95e99a089b920a3ff8df63 ympd.confd" diff --git a/community/ympd/ympd.confd b/community/ympd/ympd.confd new file mode 100644 index 0000000000..eb33f54467 --- /dev/null +++ b/community/ympd/ympd.confd @@ -0,0 +1,2 @@ +ympd_user="ympd" +ympd_pid="/var/run/ympd/ympd.pid" diff --git a/community/ympd/ympd.initd b/community/ympd/ympd.initd new file mode 100644 index 0000000000..48493ef035 --- /dev/null +++ b/community/ympd/ympd.initd @@ -0,0 +1,18 @@ +#!/sbin/openrc-run + +name=ympd +command=/usr/bin/$name +command_args="-u $ympd_user" +command_background=YES +pidfile=$ympd_pid + +depend() { + use logger dns + need net + after firewall +} + +start_pre() { + checkpath --directory --owner "$ympd_user" \ + --mode 0775 /var/run/"$name" +} diff --git a/community/ympd/ympd.pre-install b/community/ympd/ympd.pre-install new file mode 100644 index 0000000000..27eb617ed9 --- /dev/null +++ b/community/ympd/ympd.pre-install @@ -0,0 +1,5 @@ +#!/bin/sh + +adduser -S -D -H -s /sbin/nologin -G audio -g ympd ympd 2>/dev/null + +exit 0 diff --git a/main/ympd/APKBUILD b/main/ympd/APKBUILD deleted file mode 100644 index f0d6db48c8..0000000000 --- a/main/ympd/APKBUILD +++ /dev/null @@ -1,55 +0,0 @@ -# Contributor: Carlo Landmeter -# Maintainer: Natanael Copa -pkgname=ympd -pkgver=1.3.0 -pkgrel=4 -pkgdesc="A standalone MPD Web GUI" -url="http://www.ympd.org/" -arch="all" -license="GPL2" -depends="" -depends_dev="" -makedepends="$depends_dev cmake libmpdclient-dev libressl-dev" -install="$pkgname.pre-install" -subpackages="$pkgname-doc" -source="ympd-${pkgver}.tar.gz::https://github.com/notandy/ympd/archive/v$pkgver.tar.gz - $pkgname.initd - $pkgname.confd" - -_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 - mkdir build || return 1 -} - -build() { - cd "$_builddir"/build - cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr - make || return 1 -} - -package() { - cd "$_builddir"/build - make DESTDIR="$pkgdir/" install || return 1 - install -D -m755 "$srcdir"/$pkgname.initd \ - "$pkgdir"/etc/init.d/$pkgname || return 1 - install -D -m644 "$srcdir"/$pkgname.confd \ - "$pkgdir"/etc/conf.d/$pkgname || return 1 -} - -md5sums="90206af29c42af66fc900054816aee24 ympd-1.3.0.tar.gz -d61ddfc43c152dc019d96723efa3e52f ympd.initd -eeb049caa36608e7b059ab258c228b0e ympd.confd" -sha256sums="d9f68920cd93d1cfa971e1d7b9162a2b1724909bc9753c1338cecb3688d234d5 ympd-1.3.0.tar.gz -99fe804df79d9ce1f804ef05fa5c75b24c05c566313297e2dd65f9f8c06c1204 ympd.initd -045067b2a6ffd38cefc6f4a813d8095d45d349bf6bca5e45b8eaadaf1f84bc24 ympd.confd" -sha512sums="7e2bd4124b0e7692e2528e9fc50955d1b357ba042d8c97941160ad31ee0c89bc53b349195b45d27ce77aaa954bc01aceba1a30cdb89d9f58644a0b4934498a16 ympd-1.3.0.tar.gz -38ce9d2d168670474a8d8931fde592e7f45ade486fe8ce2fbd7689fa2a121eefd7cbc962be3607d71f090897733ec4e41d67f4703481525bc59fc56b99833bac ympd.initd -3e6e83877baf84762a518cc079992dd94614d59faa26600d4e34faa09285f0f0a7de8f4408488b4d017bf2ffe90f03ac1f0c3670bb95e99a089b920a3ff8df63 ympd.confd" diff --git a/main/ympd/ympd.confd b/main/ympd/ympd.confd deleted file mode 100644 index eb33f54467..0000000000 --- a/main/ympd/ympd.confd +++ /dev/null @@ -1,2 +0,0 @@ -ympd_user="ympd" -ympd_pid="/var/run/ympd/ympd.pid" diff --git a/main/ympd/ympd.initd b/main/ympd/ympd.initd deleted file mode 100644 index 48493ef035..0000000000 --- a/main/ympd/ympd.initd +++ /dev/null @@ -1,18 +0,0 @@ -#!/sbin/openrc-run - -name=ympd -command=/usr/bin/$name -command_args="-u $ympd_user" -command_background=YES -pidfile=$ympd_pid - -depend() { - use logger dns - need net - after firewall -} - -start_pre() { - checkpath --directory --owner "$ympd_user" \ - --mode 0775 /var/run/"$name" -} diff --git a/main/ympd/ympd.pre-install b/main/ympd/ympd.pre-install deleted file mode 100644 index 27eb617ed9..0000000000 --- a/main/ympd/ympd.pre-install +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -adduser -S -D -H -s /sbin/nologin -G audio -g ympd ympd 2>/dev/null - -exit 0 -- cgit v1.2.3