wok-6.x annotate ssmtp/receipt @ rev 12870
Up: automake to 1.11.3.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu May 24 21:37:47 2012 +0000 (2012-05-24) |
parents | 58db922eca44 |
children | 458c82e6cb3c |
rev | line source |
---|---|
rocky@3548 | 1 # SliTaz package receipt. |
rocky@3548 | 2 |
rocky@3548 | 3 PACKAGE="ssmtp" |
slaxemulator@11000 | 4 VERSION="2.64" |
rocky@3548 | 5 CATEGORY="network" |
rocky@3548 | 6 SHORT_DESC="Extremely simple MTA to get mail off the system to a mailhub." |
rocky@3548 | 7 MAINTAINER="rocky@slitaz.org" |
rocky@3548 | 8 DEPENDS="openssl" |
pascal@10538 | 9 BUILD_DEPENDS="openssl-dev" |
slaxemulator@11000 | 10 TARBALL="${PACKAGE}_${VERSION}.orig.tar.bz2" |
rocky@3548 | 11 WEB_SITE="http://packages.debian.org/stable/mail/ssmtp" |
rocky@3548 | 12 WGET_URL="http://ftp.debian.org/debian/pool/main/s/ssmtp/$TARBALL" |
rocky@3548 | 13 CONFIG_FILES="/etc/ssmtp/ssmtp.conf /etc/ssmtp/revaliases" |
rocky@3548 | 14 |
rocky@3548 | 15 # Rules to configure and make the package. |
rocky@3548 | 16 compile_rules() |
rocky@3548 | 17 { |
slaxemulator@8751 | 18 cd $src |
rocky@3548 | 19 ./configure --prefix=/usr \ |
rocky@3548 | 20 --sysconfdir=/etc \ |
rocky@3548 | 21 --mandir=/usr/share/man \ |
rocky@3548 | 22 --enable-md5auth \ |
rocky@3548 | 23 --enable-ssl \ |
rocky@3548 | 24 $CONFIGURE_ARGS && |
rocky@3548 | 25 make && |
rocky@3548 | 26 |
rocky@3548 | 27 # Install |
pascal@10538 | 28 mkdir -p $DESTDIR/usr/sbin $DESTDIR/etc/ssmtp |
pascal@10538 | 29 cp ssmtp $DESTDIR/usr/sbin |
pascal@10538 | 30 cp revaliases ssmtp.conf $DESTDIR/etc/ssmtp |
rocky@3548 | 31 } |
rocky@3548 | 32 |
rocky@3548 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
rocky@3548 | 34 genpkg_rules() |
rocky@3548 | 35 { |
rocky@3548 | 36 mkdir -p $fs/usr |
rocky@3548 | 37 cp -a $_pkg/usr/sbin/ $fs/usr/ |
rocky@3548 | 38 cp -a $_pkg/etc/ $fs/ |
rocky@3548 | 39 } |
rocky@3548 | 40 |
rocky@3548 | 41 post_install() |
rocky@3548 | 42 { |
rocky@3548 | 43 local root |
rocky@3548 | 44 root=$1 |
rocky@3548 | 45 echo "Processing post-install commands..." |
rocky@3573 | 46 ln -sf /usr/sbin/ssmtp $root/usr/sbin/sendmail |
rocky@3573 | 47 ln -sf /usr/sbin/ssmtp $root/usr/sbin/newaliases |
rocky@3573 | 48 ln -sf /usr/sbin/ssmtp $root/usr/sbin/mailq |
rocky@3548 | 49 } |
rocky@3548 | 50 |
rocky@3548 | 51 post_remove() |
rocky@3548 | 52 { |
rocky@3548 | 53 echo "Processing post-remove commands..." |
slaxemulator@8751 | 54 rm -f $1/usr/sbin/sendmail |
slaxemulator@8751 | 55 rm -f $1/usr/sbin/newaliases |
slaxemulator@8751 | 56 rm -f $1/usr/sbin/mailq |
rocky@3548 | 57 } |