updated on Mon Jan 16 04:00:32 UTC 2012
[aur-mirror.git] / fgetty-pam / PKGBUILD
blobd635dd992a6a272adefd45bc19c5b731c6ecd3c8
1 # Maintainer: Nick Erdmann <erdmann@date.upb.de>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>, Alois Belaska <lloyd@centrum.cz>
4 pkgname=fgetty-pam
5 pkgver=0.7
6 pkgrel=3
7 pkgdesc="A mingetty stripped of the printfs, patched for PAM-support."
8 arch=('i686' 'x86_64')
9 url='http://www.fefe.de/fgetty/'
10 license=('GPL')
11 depends=('pam')
12 provides=('fgetty')
13 conflicts=('fgetty')
14 makedepends=('dietlibc')
15 options=(!strip)
16 source=("http://www.fefe.de/fgetty/fgetty-$pkgver.tar.bz2"
17         "fgetty-$pkgver-pam.patch")
18 md5sums=('1ecb286ffe3a87ef160eefc38e9038a5'
19          '62d3033641c55dda7bd72ba6895954b5')
21 build() {
22   export PATH=$PATH:/opt/diet/bin
23   cd ${srcdir}
24   patch -p0 -i fgetty-${pkgver}-pam.patch
25   cd fgetty-${pkgver}
26   make
28 package() {
29   cd ${srcdir}/fgetty-${pkgver}
30   make DESTDIR=${pkgdir} install
31   elftrunc $pkgdir/bin/login1 $pkgdir/bin/login1
32   elftrunc $pkgdir/bin/login2 $pkgdir/bin/login2
33   elftrunc $pkgdir/sbin/fgetty $pkgdir/sbin/fgetty
34   mkdir -p $pkgdir/usr/share/
35   mv $pkgdir/usr/man $pkgdir/usr/share/