wok-6.x annotate ssmtp/receipt @ rev 17320
Add opencsg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 04 13:21:47 2014 +0100 (2014-11-04) |
parents | 458c82e6cb3c |
children | 9e01bc6321ea |
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" |
pascal@15002 | 8 LICENSE="GPL2" |
slaxemulator@11000 | 9 TARBALL="${PACKAGE}_${VERSION}.orig.tar.bz2" |
rocky@3548 | 10 WEB_SITE="http://packages.debian.org/stable/mail/ssmtp" |
rocky@3548 | 11 WGET_URL="http://ftp.debian.org/debian/pool/main/s/ssmtp/$TARBALL" |
rocky@3548 | 12 CONFIG_FILES="/etc/ssmtp/ssmtp.conf /etc/ssmtp/revaliases" |
rocky@3548 | 13 |
pascal@15002 | 14 DEPENDS="openssl" |
pascal@15002 | 15 BUILD_DEPENDS="openssl-dev" |
pascal@15002 | 16 |
rocky@3548 | 17 # Rules to configure and make the package. |
rocky@3548 | 18 compile_rules() |
rocky@3548 | 19 { |
slaxemulator@8751 | 20 cd $src |
pascal@12968 | 21 sed -i 's|@LIBS@|& -lcrypto|' Makefile.in |
rocky@3548 | 22 ./configure --prefix=/usr \ |
rocky@3548 | 23 --sysconfdir=/etc \ |
rocky@3548 | 24 --mandir=/usr/share/man \ |
rocky@3548 | 25 --enable-md5auth \ |
rocky@3548 | 26 --enable-ssl \ |
rocky@3548 | 27 $CONFIGURE_ARGS && |
rocky@3548 | 28 make && |
rocky@3548 | 29 |
rocky@3548 | 30 # Install |
pascal@10538 | 31 mkdir -p $DESTDIR/usr/sbin $DESTDIR/etc/ssmtp |
pascal@10538 | 32 cp ssmtp $DESTDIR/usr/sbin |
pascal@10538 | 33 cp revaliases ssmtp.conf $DESTDIR/etc/ssmtp |
rocky@3548 | 34 } |
rocky@3548 | 35 |
rocky@3548 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
rocky@3548 | 37 genpkg_rules() |
rocky@3548 | 38 { |
rocky@3548 | 39 mkdir -p $fs/usr |
pascal@15002 | 40 cp -a $install/usr/sbin/ $fs/usr/ |
pascal@15002 | 41 cp -a $install/etc/ $fs/ |
rocky@3548 | 42 } |
rocky@3548 | 43 |
rocky@3548 | 44 post_install() |
rocky@3548 | 45 { |
rocky@3548 | 46 local root |
rocky@3548 | 47 root=$1 |
rocky@3548 | 48 echo "Processing post-install commands..." |
rocky@3573 | 49 ln -sf /usr/sbin/ssmtp $root/usr/sbin/sendmail |
rocky@3573 | 50 ln -sf /usr/sbin/ssmtp $root/usr/sbin/newaliases |
rocky@3573 | 51 ln -sf /usr/sbin/ssmtp $root/usr/sbin/mailq |
rocky@3548 | 52 } |
rocky@3548 | 53 |
rocky@3548 | 54 post_remove() |
rocky@3548 | 55 { |
rocky@3548 | 56 echo "Processing post-remove commands..." |
slaxemulator@8751 | 57 rm -f $1/usr/sbin/sendmail |
slaxemulator@8751 | 58 rm -f $1/usr/sbin/newaliases |
slaxemulator@8751 | 59 rm -f $1/usr/sbin/mailq |
rocky@3548 | 60 } |