summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schiffbauer <mschiff@gentoo.org>2016-07-30 00:18:58 +0200
committerMarc Schiffbauer <mschiff@gentoo.org>2016-07-30 00:18:58 +0200
commitcd7450622215c52af714d55247eb68769cf7f94e (patch)
treea206afbfa51ca02d8d114df2c90f3194c8006cb9 /mail-filter/sigh
parentRevert "www-client/chromium: set target_arch=x32 when appropriate" (diff)
downloadgentoo-cd7450622215c52af714d55247eb68769cf7f94e.tar.gz
gentoo-cd7450622215c52af714d55247eb68769cf7f94e.tar.bz2
gentoo-cd7450622215c52af714d55247eb68769cf7f94e.zip
mail-filter/sigh: Added ebuild
Package-Manager: portage-2.3.0
Diffstat (limited to 'mail-filter/sigh')
-rw-r--r--mail-filter/sigh/Manifest1
-rwxr-xr-xmail-filter/sigh/files/sigh.initd23
-rw-r--r--mail-filter/sigh/metadata.xml21
-rw-r--r--mail-filter/sigh/sigh-1607.1.2.ebuild48
4 files changed, 93 insertions, 0 deletions
diff --git a/mail-filter/sigh/Manifest b/mail-filter/sigh/Manifest
new file mode 100644
index 00000000000..87b2f2469d2
--- /dev/null
+++ b/mail-filter/sigh/Manifest
@@ -0,0 +1 @@
+DIST v1607.1.2.tar.gz 57662 SHA256 7f25e8a8d9b586e97251d443700d5001ccd78a9bafda98ed19ef8cc3cc58ac2c SHA512 410883b55072b6476fc454440cf5f0e048587853a5095fddd7870b0efb5eca82e257f34ddef821f1a1968e1859207e7972e645922675fddaa2bf05b314bf5f60 WHIRLPOOL 0ec77f65660fde0c9ff57679bd21e35490cbdf0780e65db5f0422b534f6ffa319a5946ae99cd91b45d1c8010b5fa1ec88935e7a1556df8542dd4f2050d667686
diff --git a/mail-filter/sigh/files/sigh.initd b/mail-filter/sigh/files/sigh.initd
new file mode 100755
index 00000000000..bf8a44ac334
--- /dev/null
+++ b/mail-filter/sigh/files/sigh.initd
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+PIDDIR="/run/${SVCNAME}"
+
+description="Sigh is a milter that signs emails with S/MIME"
+name="S/MIME signing milter"
+pidfile="${PIDDIR}/${SVCNAME}.pid"
+command="/usr/sbin/sigh"
+command_args="-p ${pidfile} ${OPTIONS}"
+retry="30"
+
+depend() {
+ need localmount net
+ use mta logger
+}
+
+start_pre() {
+ checkpath -q -d -o sigh:sigh -m 0755 "${PIDDIR}" || return 1
+}
+
diff --git a/mail-filter/sigh/metadata.xml b/mail-filter/sigh/metadata.xml
new file mode 100644
index 00000000000..f01f3435149
--- /dev/null
+++ b/mail-filter/sigh/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>c@roessner.co</email>
+ <name>Christian Roessner</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+ </maintainer>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ <description>Proxy maintainer; CC him on bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">croessner/sigh</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/mail-filter/sigh/sigh-1607.1.2.ebuild b/mail-filter/sigh/sigh-1607.1.2.ebuild
new file mode 100644
index 00000000000..7e908167bc9
--- /dev/null
+++ b/mail-filter/sigh/sigh-1607.1.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit cmake-utils user
+
+DESCRIPTION="S/MIME signing milter"
+HOMEPAGE="https://signing-milter.org/"
+SRC_URI="https://github.com/croessner/${PN}/archive/v${PV}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="mail-filter/libmilter
+ dev-libs/boost
+ dev-libs/openssl:0"
+DEPEND="${RDEPEND}"
+
+DOCS=( README README.build AUTHORS LICENSE )
+CMAKE_IN_SOURCE_BUILD=1
+
+pkg_setup() {
+ enewgroup sigh
+ enewuser sigh -1 -1 /var/lib/sigh sigh
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ dodoc "${DOCS[@]}"
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+}