mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
|
# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
|
||
|
# Contributor: Paul Mattal <pjmattal@elys.com>
|
||
|
# Maintainer: Paul Mattal <paul@archlinux.org>
|
||
|
|
||
|
pkgname=smtpprox
|
||
|
pkgver=1.2
|
||
|
pkgrel=4
|
||
|
pkgdesc="Simple efficient SMTP proxy in perl"
|
||
|
url="http://bent.latency.net/smtpprox/"
|
||
|
license="GPL"
|
||
|
depends=(perl)
|
||
|
makedepends=()
|
||
|
provides=()
|
||
|
conflicts=()
|
||
|
replaces=()
|
||
|
backup=(opt/smtpprox/smtpprox)
|
||
|
install=
|
||
|
source=(http://bent.latency.net/$pkgname/$pkgname-$pkgver.tar.gz \
|
||
|
smtpprox-tmpname-and-xforward.patch smtpprox.sh)
|
||
|
md5sums=('a27aa8ed1580670f245f919720eaa054' \
|
||
|
'ddfcfed0e6cd120ad46aae6f66c8a68b' \
|
||
|
'dc01afc4026933a1817f2fa93a772e95')
|
||
|
|
||
|
build() {
|
||
|
cd $startdir/src/$pkgname-$pkgver || return 1
|
||
|
|
||
|
# patch to add xforward and predictable tempfile support
|
||
|
patch -Np1 -i $startdir/src/smtpprox-tmpname-and-xforward.patch || return 1
|
||
|
|
||
|
# install
|
||
|
install -D -m755 smtpprox $startdir/pkg/opt/$pkgname/smtpprox || return 1
|
||
|
cp -a MSDW $startdir/pkg/opt/$pkgname/. || return 1
|
||
|
install -D -m755 $startdir/src/smtpprox.sh $startdir/pkg/opt/rc.d/smtpprox \
|
||
|
|| return 1
|
||
|
|
||
|
# permissions
|
||
|
chown -R root:root $startdir/pkg/opt/$pkgname || return 1
|
||
|
}
|