summaryrefslogtreecommitdiff
path: root/mailman/Pkgfile
blob: 7ddb5e9432cfa2a2a8bd14c6c7101a1c56fd2f0b (plain)
    1 # Description: Mailman, the GNU Mailing List Manager
    2 # URL: http://www.gnu.org/software/mailman/
    3 # Maintainer: Jose V Beneyto, sepen at crux dot nu
    4 # Packager: Jose V Beneyto, sepen at crux dot nu
    5 # Depends on: python
    6 
    7 name=mailman
    8 version=2.1.16
    9 release=1
   10 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tgz \
   11         $name.rc)
   12 
   13 build() {
   14   cd $name-$version
   15   patch -p1 -i contrib/redhat_fhs.patch
   16 
   17   rm -f configure
   18   aclocal
   19   autoconf
   20 
   21   ./configure --prefix=/usr/lib/$name \
   22               --with-var-prefix=/var/lib/$name \
   23               --with-config-dir=/etc/$name \
   24               --with-lock-dir=/var/lock/$name \
   25               --with-log-dir=/var/log/$name \
   26               --with-pid-dir=/var/run/$name \
   27               --with-queue-dir=/var/spool/$name \
   28               --with-mailhost=localhost.localdomain \
   29               --with-urlhost=localhost.localdomain \
   30               --with-mail-gid=$name \
   31               --with-cgi-id=www \
   32               --with-cgi-gid=www \
   33               --without-permcheck
   34               
   35   make
   36   make DESTDIR=$PKG install
   37   install -D -m 0755 $SRC/$name.rc $PKG/etc/rc.d/$name
   38   
   39   # create empty crontab
   40   install -d $PKG/etc/cron.d
   41   cat > $PKG/etc/cron.d/$name << __EOF__
   42 # DO NOT EDIT THIS FILE!
   43 #
   44 # Contents of this file managed by /etc/rc.d/mailman
   45 # Master copy is /usr/lib/mailman/cron/crontab.in
   46 # Consult that file for documentation
   47 #
   48 # End of file
   49 __EOF__
   50 
   51   # fix permissions
   52   chown -R root:$name $PKG/etc/$name $PKG/usr/lib/$name \
   53     $PKG/var/{lib,lock,log,run,spool}/$name
   54   chmod 02775 $PKG/etc/$name $PKG/var/{lib,lock,log,run,spool}/$name
   55   find $PKG/usr/lib/$name -type d -exec chmod 02775 {} \;
   56   #chmod o+x $PKG/var/lib/$name/archives/private
   57 
   58   # fix configs
   59   ln -sf /usr/lib/$name/Mailman/mm_cfg.py $PKG/etc/$name
   60   ln -sf /etc/$name/sitelist.cfg $PKG/var/lib/$name/data
   61 }

Generated by cgit