diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 38 | ||||
-rw-r--r-- | msmtp.install | 18 |
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0002ade37ba0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = msmtp-ntlm + pkgdesc = A mini smtp client - NTLM support + pkgver = 1.6.3 + pkgrel = 1 + url = http://msmtp.sourceforge.net + install = msmtp.install + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = texlive-plainextra + makedepends = gsasl-ntlm + makedepends = libsecret + provides = msmtp + conflicts = msmtp + source = http://download.sourceforge.net/sourceforge/msmtp/msmtp-1.6.3.tar.xz + sha256sums = f982be069c0772c3ee83925f552f5dac5fb307d2d1c68202f9926bb13b757355 + +pkgname = msmtp-ntlm + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4a22aba9288b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Zhuoyun Wei <wzyboy@wzyboy.org> +# Contributor: Eric BĂ©langer <eric@archlinux.org> + +pkgname=msmtp-ntlm +_pkgname=msmtp +pkgver=1.6.3 +pkgrel=1 +pkgdesc="A mini smtp client - NTLM support" +arch=('i686' 'x86_64') +url="http://msmtp.sourceforge.net" +license=('GPL3') +makedepends=('texlive-plainextra' 'gsasl-ntlm' 'libsecret') +provides=('msmtp') +conflicts=('msmtp') +source=(http://download.sourceforge.net/sourceforge/msmtp/${_pkgname}-${pkgver}.tar.xz) +install=msmtp.install +sha256sums=('f982be069c0772c3ee83925f552f5dac5fb307d2d1c68202f9926bb13b757355') + +build() { + cd ${_pkgname}-${pkgver} + ./configure --prefix=/usr --sysconfdir=/etc --with-ssl=gnutls --with-libgsasl + make + make -C doc html pdf +} + +package() { + cd ${_pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + make DESTDIR="${pkgdir}" -C doc install-html install-pdf + +# Installing example configs and scripts to /usr/share/doc/msmtp +# as they are not installed by default (Debian and Gentoo do it this way) + install -d "${pkgdir}/usr/share/doc/msmtp" + cp -r scripts/{find_alias,msmtpqueue,msmtpq,set_sendmail} "${pkgdir}/usr/share/doc/msmtp/" + install -D -m644 doc/*.example "${pkgdir}/usr/share/doc/msmtp/" + + install -D -m644 scripts/vim/msmtp.vim "${pkgdir}/usr/share/vim/vimfiles/syntax/msmtp.vim" +} diff --git a/msmtp.install b/msmtp.install new file mode 100644 index 000000000000..294c9848606a --- /dev/null +++ b/msmtp.install @@ -0,0 +1,18 @@ +infodir=usr/share/info +filelist=(msmtp.info) + +post_install() { + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done +} |