blob: 9c2b9cd4a74f4537dfa80493a05f2e09b529f581 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# $Id: PKGBUILD 165260 2012-08-14 16:48:24Z andyrtr $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=openslp
pkgver=1.2.1
pkgrel=5
pkgdesc="Open-source implementation of Service Location Protocol"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.openslp.org"
license=('BSD')
depends=('bash' 'openssl')
backup=('etc/slp.conf' 'etc/slp.reg' 'etc/slp.spi')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz rc.slpd
#https://github.com/lunar-linux/moonbase-other/commit/ae74b5873e639d50db0a563d2424114a530c01ae
openslp.service)
md5sums=('ff9999d1b44017281dd00ed2c4d32330'
'4f6889a5944894b8be2c01404a9566d2'
'296dc3c8f75e7a1823fcb9dd97ea0971')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr \
--disable-static \
--enable-slpv1 \
--enable-slpv2-security # service would fail to start without this
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} DOC_DIR=/usr/share/doc/openslp-${pkgver} install
install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
install -D -m755 $srcdir/rc.slpd ${pkgdir}/etc/rc.d/slpd
install -D -m644 $srcdir/openslp.service ${pkgdir}/usr/lib/systemd/system/openslp.service
}
|