Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 4th, 2011  |  syntax: None  |  size: 1.72 KB  |  hits: 127  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: (epsilom) Xavier Corredor <xavier.corredor.llano (a) gmail.com>
  2.  
  3. pkgname=mgetty
  4. pkgver=1.1.37
  5. pkgrel=1
  6. 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."
  7. url="http://mgetty.greenie.net/"
  8. license=('GPL')
  9. arch=('i686' 'x86_64')
  10. install=mgetty.install
  11. depends=('glibc' 'logrotate' 'udev')
  12. makedepends=('make')
  13. source=(ftp://mgetty.greenie.net/pub/mgetty/source/1.1/$pkgname$pkgver-Jun05.tar.gz
  14.         Makefile.patch
  15.         config.patch
  16.         policy.patch
  17.         90-mgetty.rules
  18.         faxrunqd)
  19. md5sums=('4df2eb47bd6d5318d3d642572ab56e51'
  20.          'eaa2b17d77ca099ebb7e92cf2006f6c1'
  21.          'd40de3f241a2851f091e0046cb7f28c0'
  22.          '5556e5e88c784e75acb14ab998d7eb1a'
  23.          '4b73a5654db86a34a8dccdf5f55c699c'
  24.          '5c1888f399f4c3f9b3e26652cd759418')
  25. #md5sums=() #generate with 'makepkg -g'
  26.  
  27. build() {
  28.   cd ${startdir}/src/$pkgname-$pkgver
  29.   cp policy.h-dist policy.h
  30.   patch -Np0 -i ../../config.patch || return 1
  31.   patch -Np0 -i ../../policy.patch || return 1
  32.   make clean
  33.   make || return 1
  34.   make testdisk
  35.   make test
  36.   mkdir -p $startdir/pkg/usr
  37.   mkdir -p $startdir/pkg/var/spool
  38.  
  39.   # add
  40.   mkdir -p $startdir/pkg/etc/rc.d
  41.   install -D -m755 $startdir/faxrunqd $pkgdir/etc/rc.d/faxrunqd
  42.   install -D -m644 $startdir/90-mgetty.rules $pkgdir/etc/udev/rules.d/90-mgetty.rules
  43.  
  44.   # Change
  45.   # make prefix=$startdir/pkg/usr spool=$startdir/pkg/var/spool FAX_OUT_USER=0 install || return 1
  46.   make prefix=$startdir/pkg/usr spool=$startdir/pkg/var/spool CONFDIR=$startdir/pkg/etc/mgetty+sendfax install || return 1
  47. }