summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f8351fca57b4dc150f0c852358af5661a091548f (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
37
38
39
40
41
42
43
44
45
46
47
# Contributor: <alexandre.becoulet@free.fr>
# Contributor: <netbug@ftp.uk.linux.org>
# Contributor: Fluke <fluke.l at gmail.com>

pkgname=netkit-telnet-ssl
pkgver=0.17.24+0.1
pkgrel=3
pkgdesc="telnet client and server with ssl enabled"
arch=('i686' 'x86_64')
license=('BSD')
url="http://www.hcs.harvard.edu/~dholland/computers/netkit.html"
source=(http://ftp.de.debian.org/debian/pool/main/n/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz
        netkit-telnet-ssl-0.17.24+0.1_arch.diff
        telnet.xinetd)
depends=('glibc' 'openssl' 'ncurses')
md5sums=('43a402139ed6b86434fdb83256feaad8'
         'd51bf898269a79a2de77d1134516c209'
         'ca38af6f1346ae90b2cb1e160858b453')
install=netkit-telnet-ssl.install

prepare() {
  cd "$pkgname-$pkgver.orig"

  patch -p1 < ../netkit-telnet-ssl-0.17.24+0.1_arch.diff
}

build() {
  cd "$pkgname-$pkgver.orig"

  ./configure --prefix=/usr --installroot="$pkgdir"
  make -j1
}

package() { 
  cd "$pkgname-$pkgver.orig"

  mkdir -p "$pkgdir"/usr/{bin,sbin,man/man1,man/man5,man/man8}
  make install

  mv "$pkgdir"/usr/sbin/in.telnetd-ssl "$pkgdir"/usr/bin/in.telnetd-ssl
  rmdir "$pkgdir"/usr/sbin

  mkdir -p "$pkgdir"/etc/xinetd.d
  install -m644 "$srcdir"/telnet.xinetd $"pkgdir"/etc/xinetd.d/telnet-ssl
}

# vim: ts=2:sw=2:et: