Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: (epsilom) Xavier Corredor <xavier.corredor.llano (a) gmail.com>
- pkgname=mgetty
- pkgver=1.1.37
- pkgrel=1
- pkgdesc="Mgetty is a versatile program to handle all aspects of a modem under Unix. The program 'mgetty' allows you to use a modem for handling external logins, receiving faxes and using the modem as a answering machine without interfering with outgoing calls."
- url="http://mgetty.greenie.net/"
- license=('GPL')
- arch=('i686' 'x86_64')
- install=mgetty.install
- depends=('glibc' 'logrotate' 'udev')
- makedepends=('make')
- source=(ftp://mgetty.greenie.net/pub/mgetty/source/1.1/$pkgname$pkgver-Jun05.tar.gz
- Makefile.patch
- config.patch
- policy.patch
- 90-mgetty.rules
- faxrunqd)
- md5sums=('4df2eb47bd6d5318d3d642572ab56e51'
- 'eaa2b17d77ca099ebb7e92cf2006f6c1'
- 'd40de3f241a2851f091e0046cb7f28c0'
- '5556e5e88c784e75acb14ab998d7eb1a'
- '4b73a5654db86a34a8dccdf5f55c699c'
- '5c1888f399f4c3f9b3e26652cd759418')
- #md5sums=() #generate with 'makepkg -g'
- build() {
- cd ${startdir}/src/$pkgname-$pkgver
- cp policy.h-dist policy.h
- patch -Np0 -i ../../config.patch || return 1
- patch -Np0 -i ../../policy.patch || return 1
- make clean
- make || return 1
- make testdisk
- make test
- mkdir -p $startdir/pkg/usr
- mkdir -p $startdir/pkg/var/spool
- # add
- mkdir -p $startdir/pkg/etc/rc.d
- install -D -m755 $startdir/faxrunqd $pkgdir/etc/rc.d/faxrunqd
- install -D -m644 $startdir/90-mgetty.rules $pkgdir/etc/udev/rules.d/90-mgetty.rules
- # Change
- # make prefix=$startdir/pkg/usr spool=$startdir/pkg/var/spool FAX_OUT_USER=0 install || return 1
- make prefix=$startdir/pkg/usr spool=$startdir/pkg/var/spool CONFDIR=$startdir/pkg/etc/mgetty+sendfax install || return 1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement