summaryrefslogtreecommitdiff
path: root/net-mail/safecat
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail/safecat')
-rw-r--r--net-mail/safecat/Manifest7
-rw-r--r--net-mail/safecat/files/safecat-1.11-gentoo.patch9
-rw-r--r--net-mail/safecat/files/safecat-1.13-makefile.patch20
-rw-r--r--net-mail/safecat/metadata.xml12
-rw-r--r--net-mail/safecat/safecat-1.13.ebuild52
5 files changed, 100 insertions, 0 deletions
diff --git a/net-mail/safecat/Manifest b/net-mail/safecat/Manifest
new file mode 100644
index 000000000000..cc7333c6e29f
--- /dev/null
+++ b/net-mail/safecat/Manifest
@@ -0,0 +1,7 @@
+AUX safecat-1.11-gentoo.patch 355 SHA256 33c339b55377d09e50e038bf6a397c36f25a8baec5063e6fbbdddc308c7a05e3 SHA512 6c2f94a5ad25c20639986e8ac1865242a32c716f117f4b5077ffe802e67e1798a5b9b76b30b5551234d34b14ef6139f070b6496b9e029407000555917f6d36a9 WHIRLPOOL b55cf72bf84b56cb2070f1db6bde97e939fe56080f2fd1ba7e57954a9c542863683397c1672889f4e0ad31faa2226675a9fcfd35e3ccd589c17b9c7f774f96c2
+AUX safecat-1.13-makefile.patch 562 SHA256 21d8c1f020114603a71e30ac82877ac4adff14341e4c3ca1d22285c19a09f2d6 SHA512 d48a33ce9e68ce8a27d77968040a146b975986b85e3ef534bde6a015b8179fc563f341be1ab7e74afe3e260ad267c99e18aab027d2f63125f76c071e15867050 WHIRLPOOL b5748b426c262caaab0ad430527d1e07848757e432fdf25bd5ee6309d3c0f66e62a74825b4c4f5043410ae509301a8779ec57e57deceac2feda0a4f73a1e3efb
+DIST safecat-1.13.tar.gz 33953 SHA256 2e43dd88e703edb2e48cb3b1da6f8c4a8f9802bcc51ba36a58110e8a1c096e9b SHA512 e6f7401b55a61f70715b3d222c8286c0125c5e7b3b132e5e8d3c8573a6c45dba75b29a459c7e93d7c0760300f0a62635d8ea4eacde9b0b1ff7637b3f6c63e210 WHIRLPOOL 07a8b9bdec221f7667009c5cf11372bd80b1c3cdeb2bedf471fcf4978236298d5ba5011b57828f120319c931d0306c1360531ea91c12485d9ade5d511067848a
+EBUILD safecat-1.13.ebuild 1272 SHA256 aa12e6ba72a607a998e9a56da44fcf430a651ec7a9098d6d4613aa1eba3a779c SHA512 fa3c5b7ea5e11c8d75a53cec92988634f9aa60f9382f91fb205bf6145484d7f5e364472e951d343fd156e19773bcb787cece3ac09308854470a405c8accaae2e WHIRLPOOL b228ef8e02212058ce81a167912cc190eaf8cff6966b952af80999bca0aac9ef6af4ad1fd2cd5210406b1fa816d232356b476de578d3500274cbd5eab6f4181b
+MISC ChangeLog 2497 SHA256 0e4f80f2eb8a4f7700caf0a0d611c4b232aa9cac00cf7594e78837621fa523f6 SHA512 00a1df4bd15f4dc7526e99f1168755c3c1938fa7a5fe7372fb226ebfaab65e024cc0ae2259cab177ed84b0e447cb8a816a3b6f264b993d340937d90a296bfc4c WHIRLPOOL b5aef2365b698779b084a5507baf7966bc1f21aa60790429d8bfcdf05d9675f444d7728a8ca2575d4b70627b84e36a0914e9b870419f62ac9ef561143dc22ced
+MISC ChangeLog-2015 3019 SHA256 0ebd8e256f52a1e6b77b43f29b30a03beb900864744276a7857ddc70dc97bb8d SHA512 8b5ce179e9c8430d0d45658d34bc32a7029ceda107a0e98c9844825de110a6191c965e6ba9324601ad5674047e3fae95751c92543e4a72b60189345fcddf54c5 WHIRLPOOL 6049a06277b2bf4b443083733c5877fa4118f8e4c46c7da976108c0f42502dac1388f749748fcb35627412dff261c24b200006d1be8a65b76dfc3b69c9efccf5
+MISC metadata.xml 387 SHA256 78297e62b5cfb99e13992f7a6c7d2cb18d5533439e2c5c9d5fa08e25cbc8ec37 SHA512 be8f5c847c3229d17400cad4230398bc68046166e080ad1998c9c659a6dfb68a4ddb6d39d059c38ec0c11702c8c786b8c49a7a42147fe51bd53fbdfc52624c25 WHIRLPOOL 54058bcedea46b89b0cde9877b236be14f295ab7e729113a31ae56e8bb89b9509d0fc34f92512c7827f99cd8577dfe748582bbf72d7518632ec2e74162420909
diff --git a/net-mail/safecat/files/safecat-1.11-gentoo.patch b/net-mail/safecat/files/safecat-1.11-gentoo.patch
new file mode 100644
index 000000000000..efd3f049cfa0
--- /dev/null
+++ b/net-mail/safecat/files/safecat-1.11-gentoo.patch
@@ -0,0 +1,9 @@
+diff -durN safecat-1.11.orig/maildir.sh safecat-1.11/maildir.sh
+--- safecat-1.11.orig/maildir.sh 2003-04-14 16:03:09.000000000 +0200
++++ safecat-1.11/maildir.sh 2003-04-14 16:03:56.000000000 +0200
+@@ -1,4 +1,4 @@
+ # Copyright (c) 2000, Len Budney. See COPYING for details.
+
+ exec \
+-HOME/bin/safecat "$1"/tmp "$1"/new
++/usr/bin/safecat "$1"/tmp "$1"/new
diff --git a/net-mail/safecat/files/safecat-1.13-makefile.patch b/net-mail/safecat/files/safecat-1.13-makefile.patch
new file mode 100644
index 000000000000..50a9d44a5988
--- /dev/null
+++ b/net-mail/safecat/files/safecat-1.13-makefile.patch
@@ -0,0 +1,20 @@
+--- safecat-1.13/Makefile.orig 2010-11-07 14:06:40.071879291 -0800
++++ safecat-1.13/Makefile 2010-11-07 14:08:38.438849840 -0800
+@@ -114,7 +114,7 @@
+ ./compile install.c
+
+ instcheck: \
+-load instcheck.o hier.o auto_home.o strerr.a substdio.a error.a str.a
++install load instcheck.o hier.o auto_home.o strerr.a substdio.a error.a str.a
+ ./load instcheck hier.o auto_home.o strerr.a substdio.a \
+ error.a str.a
+
+@@ -387,7 +387,7 @@
+ ./compile taia_tai.c
+
+ tempfile.o: \
+-compile tempfile.c
++compile tempfile.c uint64.h
+ ./compile tempfile.c
+
+ uint32.h: \
diff --git a/net-mail/safecat/metadata.xml b/net-mail/safecat/metadata.xml
new file mode 100644
index 000000000000..8f7804014a0e
--- /dev/null
+++ b/net-mail/safecat/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/safecat/safecat-1.13.ebuild b/net-mail/safecat/safecat-1.13.ebuild
new file mode 100644
index 000000000000..78dc3a099424
--- /dev/null
+++ b/net-mail/safecat/safecat-1.13.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit fixheadtails eutils toolchain-funcs flag-o-matic
+
+DESCRIPTION="Safecat implements qmail's maildir algorithm, copying standard input safely to a specified directory"
+HOMEPAGE="http://www.jeenyus.net/linux/software/safecat.html"
+SRC_URI="http://www.jeenyus.net/linux/software/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~hppa ~mips ppc ~sparc x86"
+IUSE=""
+RESTRICT="test"
+
+DEPEND="sys-apps/groff"
+RDEPEND=""
+
+src_prepare() {
+ # applying maildir-patch
+ epatch "${FILESDIR}"/safecat-1.11-gentoo.patch
+
+ # Fix parallel make errors
+ epatch "${FILESDIR}"/${P}-makefile.patch
+
+ ht_fix_file Makefile make-compile.sh
+
+ sed -ni '/man\|doc/!p' hier.c
+
+ # Fix implicit decleration
+ sed -i -e '/include <signal.h>/ a #include <stdlib.h>' \
+ safecat.c
+}
+
+src_configure() {
+ # safecat segfaults on gcc-4.0 x86 with -Os, seems to be okay with -O2
+ if [[ $(gcc-major-version).$(gcc-minor-version) == 4.0 ]]; then
+ replace-flags -Os -O2
+ fi
+
+ echo "${D}/usr" > conf-root
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+}
+
+src_install() {
+ emake setup check || die
+ dodoc CHANGES README
+ doman maildir.1 safecat.1
+}