aboutsummaryrefslogtreecommitdiffstats
path: root/community/s-nail/APKBUILD
diff options
context:
space:
mode:
authorSimon Frankenberger <simon@fraho.eu>2019-02-16 10:24:07 +0100
committerKevin Daudt <kdaudt@alpinelinux.org>2019-02-22 18:18:46 +0000
commitd94bcbec21466d748703eab38ddceebb06f2a076 (patch)
tree29a0d7ff6c9cc40dc1e8bc9e0f680ca3c0a7bcd4 /community/s-nail/APKBUILD
parent9df8dd192eb3359cfe8f19c416cdfe384ad26937 (diff)
community/s-nail: Move from testing
This PR moves the s-nail aport from testing to community. I think this aport is stable enough to provide stable releases. Closes https://bugs.alpinelinux.org/issues/9919 Please also backport this change to 3.9
Diffstat (limited to 'community/s-nail/APKBUILD')
-rw-r--r--community/s-nail/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/community/s-nail/APKBUILD b/community/s-nail/APKBUILD
new file mode 100644
index 00000000000..0b943ec14b1
--- /dev/null
+++ b/community/s-nail/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Steffen Nurpmeso <steffen@sdaoden.eu>
+# Contributor: Ivan Tham <pickfire@riseup.net>
+# Maintainer: Steffen Nurpmeso <steffen@sdaoden.eu>
+pkgname=s-nail
+pkgver=14.9.11
+pkgrel=3
+pkgdesc="SysV mail/BSD Mail/POSIX mailx: send and receive Internet mail"
+url="https://www.sdaoden.eu/code.html#s-mailx"
+arch="all"
+license="BSD"
+makedepends="openssl-dev libidn-dev ncurses-dev krb5-dev"
+options="suid"
+replaces="mailx"
+subpackages="$pkgname-doc"
+source="https://ftp.sdaoden.eu/s-nail-$pkgver.tar.xz"
+builddir="$srcdir/"$pkgname-$pkgver
+
+build() {
+ cd "$builddir"
+ make \
+ EXTRA_CFLAGS="$CFLAGS" \
+ \
+ VAL_SID= VAL_MAILX=mail \
+ VAL_PREFIX=/usr \
+ VAL_SYSCONFDIR=/etc \
+ \
+ VAL_IDNA=idn \
+ VAL_RANDOM="libgetrandom sysgetrandom urandom builtin" \
+ \
+ config
+ make build # XXX unite with config in v14.9.12
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+
+sha512sums="e33de63e9c938a466c9c894e6a04ead0ccf42923bc1afaa52e7d7d7f763498567c3033b74be41b633b73d16c8f6baf6a3bec14db16975493ffc402a70a1395d3 s-nail-14.9.11.tar.xz"