aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/mailx-support
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/mailx-support')
-rw-r--r--unmaintained/mailx-support/APKBUILD29
-rw-r--r--unmaintained/mailx-support/mailx-support-ldflags.patch15
2 files changed, 44 insertions, 0 deletions
diff --git a/unmaintained/mailx-support/APKBUILD b/unmaintained/mailx-support/APKBUILD
new file mode 100644
index 0000000000..503f203067
--- /dev/null
+++ b/unmaintained/mailx-support/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Michael Mason <ms13sp@gmail.com>
+# Maintainer: Michael Mason <ms13sp@gmail.com>
+pkgname=mailx-support
+pkgver=20060102
+pkgrel=0
+pkgdesc="Provides lockspool utility"
+url="http://www.openbsd.org"
+license="BSD"
+depends=""
+makedepends=""
+install=
+subpackages="$pkgname-doc"
+source="http://gentoo.osuosl.org/distfiles/$pkgname-$pkgver.tar.bz2
+ mailx-support-ldflags.patch"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ for i in ../*.patch; do
+ msg "Appling $i..."
+ patch -p1 < $i || return 1
+ done
+
+ make || return 1
+ install -m755 -D "$srcdir"/"$pkgname-$pkgver"/lockspool "$pkgdir"/usr/libexec/lockspool
+ install -m644 -D "$srcdir"/"$pkgname-$pkgver"/lockspool.1 "$pkgdir"-doc/usr/share/man/man1/lockspool.1
+}
+
+md5sums="3f671fe4368a5b536e8384980a9a5c80 mailx-support-20060102.tar.bz2
+32a98aee973db8860f1f53a9297b8dd9 mailx-support-ldflags.patch"
diff --git a/unmaintained/mailx-support/mailx-support-ldflags.patch b/unmaintained/mailx-support/mailx-support-ldflags.patch
new file mode 100644
index 0000000000..97c5b60047
--- /dev/null
+++ b/unmaintained/mailx-support/mailx-support-ldflags.patch
@@ -0,0 +1,15 @@
+--- mailx-support-20060102.orig/Makefile
++++ mailx-support-20060102/Makefile
+@@ -17,10 +17,10 @@ clean:
+ ${RM} -f ${PRODUCTS} *.o
+
+ mail.local: mail.local.o locking.o open_with_exlock.o
+- ${CC} ${CFLAGS} -o $@ $^
++ ${CC} ${LDFLAGS} ${CFLAGS} -o $@ $^
+
+ lockspool: lockspool.o locking.o open_with_exlock.o
+- ${CC} ${CFLAGS} -o $@ $^
++ ${CC} ${LDFLAGS} ${BINDNOW_FLAGS} ${CFLAGS} -o $@ $^
+
+ .c.o:
+ ${CC} ${CFLAGS} -c -o $@ $^