diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-perl/Mail-SRS | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-perl/Mail-SRS')
| -rw-r--r-- | dev-perl/Mail-SRS/Mail-SRS-0.310.0-r3.ebuild | 43 | ||||
| -rw-r--r-- | dev-perl/Mail-SRS/Manifest | 1 | ||||
| -rw-r--r-- | dev-perl/Mail-SRS/files/srsd.conf | 56 | ||||
| -rw-r--r-- | dev-perl/Mail-SRS/files/srsd.init | 53 | ||||
| -rw-r--r-- | dev-perl/Mail-SRS/metadata.xml | 9 |
5 files changed, 162 insertions, 0 deletions
diff --git a/dev-perl/Mail-SRS/Mail-SRS-0.310.0-r3.ebuild b/dev-perl/Mail-SRS/Mail-SRS-0.310.0-r3.ebuild new file mode 100644 index 000000000000..f6f60f236c66 --- /dev/null +++ b/dev-perl/Mail-SRS/Mail-SRS-0.310.0-r3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=SHEVEK +DIST_VERSION=0.31 +inherit perl-module + +DESCRIPTION="Interface to Sender Rewriting Scheme" + +SLOT="0" +KEYWORDS="amd64 x86" + +RDEPEND=" + >=dev-perl/Digest-HMAC-1.10.0-r1 + >=dev-perl/MLDBM-2.10.0 + >=virtual/perl-DB_File-1.807.0 + >=virtual/perl-Digest-MD5-2.330.0 + >=virtual/perl-Storable-2.40.0-r1" +BDEPEND="${RDEPEND} + test? ( virtual/perl-Test-Simple ) +" + +PERL_RM_FILES=( t/10_pod.t t/11_pod_coverage.t ) + +src_install() { + perl-module_src_install + + newinitd "${FILESDIR}/srsd.init" srsd + newconfd "${FILESDIR}/srsd.conf" srsd +} + +pkg_postinst() { + einfo 'NOTE: srsd default configuration is to use a secret string.' + einfo 'You can configure this value in /etc/conf.d/srsd.' + einfo '' + einfo 'You cannot use both --secret and --secretfile options combined.' + einfo 'The former will override the latter.' + einfo '' + einfo 'If you want to use a secret file, make sure the file' + einfo 'is NOT empty and contains characters.' +} diff --git a/dev-perl/Mail-SRS/Manifest b/dev-perl/Mail-SRS/Manifest new file mode 100644 index 000000000000..85672b68298d --- /dev/null +++ b/dev-perl/Mail-SRS/Manifest @@ -0,0 +1 @@ +DIST Mail-SRS-0.31.tar.gz 26605 BLAKE2B 9d81c647dd3fa63666ed721b0f83478f4bc814f591c0f586933ddac0b0c17c2d67fcc7954e55be78b3ce51b0346a02ebdbbe3da80f479552682a7a5a21ac2831 SHA512 d9810563cb512ba2e5441895c5ceac61bbfa44d1308a5f8521a2e9c49d35f22d77a8f03878c7016823ad996f061071ca82486f4e0dd21a98cdb8398a9208915d diff --git a/dev-perl/Mail-SRS/files/srsd.conf b/dev-perl/Mail-SRS/files/srsd.conf new file mode 100644 index 000000000000..6d40344866fb --- /dev/null +++ b/dev-perl/Mail-SRS/files/srsd.conf @@ -0,0 +1,56 @@ +# conf.d file for srsd +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Options available (copied from the man page): +# +# --separator +# String, specified at most once. Defaults to $SRSSEP ("="). +# Specify the initial separator for the SRS address. See Mail::SRS for +# details. +# +SRSD_SEPARATOR='=' + +# +# --secret +# String, may be specified multiple times, at least one of --secret or +# --secretfile must be specified. +# +# --secret will specify a primary secret and override --secretfile if both are +# specified. However, secrets read from --secretfile will still be used for +# decoding if both are specified. +# +# Specify an SRS secret. The first specified secret is used for encoding. All +# secrets are used for decoding. +# +# This is a dummy value. Change it to something more relevant. +SRSD_SECRET_STRING='mysecretstring' + +# +# --secretfile +# String, specified at most once, at least one of --secret or --secretfile must +# be specified. +# +# A file to read for secrets. Secrets are specified once per line. The first +# specified secret is used for encoding. Secrets are written one per line. Blank +# lines and lines starting with a # are ignored. If --secret is not given, then +# the secret file must be nonempty. +# +# This is a dummy value. Change the value as you see fit. +# SRSD_SECRET_FILE='/etc/mysecretfile' + +# +# --hashlength +# Integer, may be specified at most once, defaults to 4. +SRSD_HASHLENGHT=4 + +# +# Note: You cannot use both --secret and --secretfile options. +# The former will override the latter. + +# Stick options you wish to use in SRSD_OPTS +SRSD_OPTS=" +--secret=${SRSD_SECRET_STRING} +--separator=${SRSD_SEPARATOR} +--hashlength=${SRSD_HASHLENGHT} +" diff --git a/dev-perl/Mail-SRS/files/srsd.init b/dev-perl/Mail-SRS/files/srsd.init new file mode 100644 index 000000000000..9862a29da2f9 --- /dev/null +++ b/dev-perl/Mail-SRS/files/srsd.init @@ -0,0 +1,53 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +pidfile="/var/run/srsd.pid" +command="/usr/bin/srsd" +command_args="${SRSD_OPTS}" + +depend() { + use logger +} + +start_pre() { + if [[ ! -z ${SRSD_SECRET_FILE} ]]; then + # check for secret file + checkpath --file --owner root:root --mode 0644 ${SRSD_SECRET_FILE} + + # srsd complains if the secret file is empty + # check for characters in it + grep -q '.' ${SRSD_SECRET_FILE} + + # grep returns 0 if a match has been found + # 1 otherwise + local retval=$? + if [[ $retval -ne 0 ]]; then + eerror "Secret file \"${SRSD_SECRET_FILE}\" must NOT be empty." + return 1 + fi + fi + + return 0 +} + +start() { + ebegin 'Starting srsd' + start-stop-daemon \ + --start \ + --background \ + --pidfile ${pidfile} \ + --make-pidfile \ + --exec ${command} \ + -- ${command_args} + eend $? +} + +stop() { + ebegin 'Stopping srsd' + start-stop-daemon \ + --stop \ + --pidfile ${pidfile} \ + --exec ${command} + eend $? +} diff --git a/dev-perl/Mail-SRS/metadata.xml b/dev-perl/Mail-SRS/metadata.xml new file mode 100644 index 000000000000..89c67f49bdb9 --- /dev/null +++ b/dev-perl/Mail-SRS/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>perl@gentoo.org</email> + <name>Gentoo Perl Project</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
