summaryrefslogtreecommitdiff
path: root/net-mail/safecat
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-mail/safecat
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-mail/safecat')
-rw-r--r--net-mail/safecat/Manifest1
-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.xml9
-rw-r--r--net-mail/safecat/safecat-1.13.ebuild53
5 files changed, 92 insertions, 0 deletions
diff --git a/net-mail/safecat/Manifest b/net-mail/safecat/Manifest
new file mode 100644
index 00000000000..1fe0aefedb9
--- /dev/null
+++ b/net-mail/safecat/Manifest
@@ -0,0 +1 @@
+DIST safecat-1.13.tar.gz 33953 RMD160 614df1d43d13a638ab30a2921b66d78f3fafc4c6 SHA1 07b42cb06490abeacefce9429a1dbf96caa1629b SHA256 2e43dd88e703edb2e48cb3b1da6f8c4a8f9802bcc51ba36a58110e8a1c096e9b
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 00000000000..efd3f049cfa
--- /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 00000000000..50a9d44a598
--- /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 00000000000..89dcd746873
--- /dev/null
+++ b/net-mail/safecat/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-mail</herd>
+ <maintainer>
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</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 00000000000..fc04694450a
--- /dev/null
+++ b/net-mail/safecat/safecat-1.13.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+}