db-move: moved seahorse from [testing] to [extra] (x86_64)
[arch-packages.git] / xinetd / trunk / PKGBUILD
blob046f2ef64c6929d91d2d8a5b031710757833d234
1 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
2 # Contributor: Judd <jvinet@zeroflux.org>
4 pkgname=xinetd
5 pkgver=2.3.15.4
6 pkgrel=1
7 pkgdesc="A secure replacement for inetd"
8 arch=('x86_64')
9 url="https://github.com/openSUSE/xinetd"
10 license=('custom')
11 depends=('libtirpc')
12 optdepends=('perl: for xconv.pl script')
13 backup=('etc/xinetd.conf' 'etc/xinetd.d/servers' 'etc/xinetd.d/services')
14 source=("https://github.com/openSUSE/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz"
15         xinetd.conf
16         servers
17         services
18         xinetd.service)
19 sha256sums=('2baa581010bc70361abdfa37f121e92aeb9c5ce67f9a71913cebd69359cc9654'
20             '389a043503b287a1d096444b7da90c5187388a886687129c125135090bc2c86e'
21             '707a89ec32822f6d146b6ed3d43a38fee909b33d973f6ab7e9742ca8bc9f55f6'
22             '7f709257b08cb19f0a7066d1de6996bfe7c8c510546d11106512a19a76ccf540'
23             'fa9ffd5ecf71e2dbd6e8cf57eb040ff6ea349420707a7f3c7850974774f7a18d')
25 build() {
26   cd $pkgname-$pkgver
27   ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --without-libwrap
28   CFLAGS+=' -I/usr/include/tirpc' LDFLAGS+=' -ltirpc' make
31 package() {
32   cd $pkgname-$pkgver
33   make prefix="$pkgdir/usr" sbindir="$pkgdir/usr/bin" sysconfdir="$pkgdir/etc" install
34   
35   install -Dm644 "$srcdir"/xinetd.conf "$pkgdir"/etc/xinetd.conf
36   install -Dm644 "$srcdir"/servers "$pkgdir"/etc/xinetd.d/servers
37   install -Dm644 "$srcdir"/services "$pkgdir"/etc/xinetd.d/services
39   # install systemd files
40   install -Dm644 "$srcdir"/xinetd.service "$pkgdir"/usr/lib/systemd/system/xinetd.service
41   # install license
42   install -Dm644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT