version bump, add Benno mailarchive
This commit is contained in:
parent
1ac5975ccd
commit
b1cfe30519
2
acct-group/benno/Manifest
Normal file
2
acct-group/benno/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
EBUILD benno-0.ebuild 198 BLAKE2B 486da04e23dd23e44e1feb4f22a4d73f91584c1737e4a7d6571fd4c48fdea9bf31ce701ff80b65465f053c21d76293c346cdfa719cc44daa47b0fe76e27cc6c1 SHA512 7c180d121bb3b96bc42b256343c71395ecca7a3091720f805c70c35c94324b702ade8a94d36110a0b0909e34a7d545b2d1db45609df80e2e7e43cd7c830ff0be
|
||||
MISC metadata.xml 168 BLAKE2B 2e0e000b4c3b6ca04c12903fdbe278415c05a822623c52e9aa95cbbf3d50bcb1246b7edbda7d2f6b559af8950c6374e6e0a69b76319964cfe686bf50b0604a57 SHA512 4dcf45d1809e8390a2d8155c8ebfe0dd610203e392aeab0ccd8a10f42cc8532a4925eff32b35e7a6c35598a4efd288229034ec0732299dbd8cfa0acff705fed3
|
10
acct-group/benno/benno-0.ebuild
Normal file
10
acct-group/benno/benno-0.ebuild
Normal file
@ -0,0 +1,10 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit acct-group
|
||||
|
||||
DESCRIPTION="A group for benno mailarchive"
|
||||
|
||||
ACCT_GROUP_ID="607"
|
5
acct-group/benno/metadata.xml
Normal file
5
acct-group/benno/metadata.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
</pkgmetadata>
|
2
acct-user/benno/Manifest
Normal file
2
acct-user/benno/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
EBUILD benno-0.ebuild 228 BLAKE2B aa1caad371c7ccf900404137336943aa478eb4ca3902a5fb62ef9614dc853c09efc5cefb876074c8eb41fcd5c9d732c8b645e75a18f4075b81ed1b43093b2b5c SHA512 eb2cd12eb4fd1c2f6a74dbd00709e96c5d805fcbf043fa52e5c67673b70a3f1f253a15fb8639e760c2e575d74ff3bb8a8d6fb80fd392552176b5d471891f78e4
|
||||
MISC metadata.xml 168 BLAKE2B 2e0e000b4c3b6ca04c12903fdbe278415c05a822623c52e9aa95cbbf3d50bcb1246b7edbda7d2f6b559af8950c6374e6e0a69b76319964cfe686bf50b0604a57 SHA512 4dcf45d1809e8390a2d8155c8ebfe0dd610203e392aeab0ccd8a10f42cc8532a4925eff32b35e7a6c35598a4efd288229034ec0732299dbd8cfa0acff705fed3
|
12
acct-user/benno/benno-0.ebuild
Normal file
12
acct-user/benno/benno-0.ebuild
Normal file
@ -0,0 +1,12 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit acct-user
|
||||
|
||||
ACCT_USER_ID="607"
|
||||
ACCT_USER_GROUPS=( "benno" )
|
||||
ACCT_USER_HOME="/srv/benno"
|
||||
|
||||
acct-user_add_deps
|
5
acct-user/benno/metadata.xml
Normal file
5
acct-user/benno/metadata.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
</pkgmetadata>
|
2
acct-user/bennorest/Manifest
Normal file
2
acct-user/bennorest/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
EBUILD bennorest-0.ebuild 228 BLAKE2B 1f503899f69bc4e934e7407629d6522b309c1646cee6ad163d8ab1523ad9c2286c441a0f99d46019e6a6e3339e2eb69028156d4abbddb65f43455caac16caea1 SHA512 249eb284e1655e716da61ad8c42484b4dbc1e8dccea67feeda3fabe814788a44bec2e1eb81190aba3c696e1b8eff53c8fba8fb1d800ee9603a345f79cb620a4d
|
||||
MISC metadata.xml 168 BLAKE2B 2e0e000b4c3b6ca04c12903fdbe278415c05a822623c52e9aa95cbbf3d50bcb1246b7edbda7d2f6b559af8950c6374e6e0a69b76319964cfe686bf50b0604a57 SHA512 4dcf45d1809e8390a2d8155c8ebfe0dd610203e392aeab0ccd8a10f42cc8532a4925eff32b35e7a6c35598a4efd288229034ec0732299dbd8cfa0acff705fed3
|
12
acct-user/bennorest/bennorest-0.ebuild
Normal file
12
acct-user/bennorest/bennorest-0.ebuild
Normal file
@ -0,0 +1,12 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit acct-user
|
||||
|
||||
ACCT_USER_ID="608"
|
||||
ACCT_USER_GROUPS=( "benno" )
|
||||
ACCT_USER_HOME="/opt/benno"
|
||||
|
||||
acct-user_add_deps
|
5
acct-user/bennorest/metadata.xml
Normal file
5
acct-user/bennorest/metadata.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
</pkgmetadata>
|
@ -1,4 +1,3 @@
|
||||
AUX clamav-unofficial-sigs.8 4568 SHA256 6bd8774a3ae3d054f3a9cd8b525e13ddbe32d33fc46fa88733f5430e51fcb5de SHA512 8e688281c6918ea8c13f5d76c63fee65b6e3378ca1d2e92033a741b7f02d12607d838484075e0d3ae8d99680a5b235acee062fc80c63f7e5577cfee575b56573 WHIRLPOOL 471b5ae57e9918037da3b5e5cbba3edd835aab2be8d3241397a642f1fb53052f389ad69e46d745536024afda8209f85a691901ef6898e450cacc66bc812f6ea7
|
||||
AUX clamav-unofficial-sigs.logrotate 109 SHA256 48d181052c53f96b13b28b282d15af5794c69125e5c682dfa22a3632c5b34d58 SHA512 3d79caf1bbc29218aacda9c6c411b6b9e827644c3a89a3a1b9e0d89baeb7927cdbda3322c9b5a5186e53f0efa598e165d10cfa698936a687bd6279f6e3866830 WHIRLPOOL 6b19327c5b571f8862c4ddbe4f9dddf940b2359629e3b1d11e89865dc64e9025af69140b882e2615844d45b382e0c6f25d74a3a8371c26ce08aaaa15b8176dff
|
||||
DIST clamav-unofficial-sigs-5.6.2.tar.gz 50931 SHA256 233404d767fcb7d2b82defef831d584cbbcc7105f6bbc586d69a0a960bc0d4df SHA512 79978db065a22d778490d0a2673f5a0bb7ab73e42de64563e7d26ac23459f7e5b2e73b0548e1ea6483e3c5f43eed65cdbc6814037cc0c46a339366a0150e5427 WHIRLPOOL a427937e99afad89ea6b0ee14599024a3877d19894da16cda631980cc0daa236560b1c1a899d2b8ac04a886e29562ad9ec6eeaa1048ee4b765bdc333ad003eaf
|
||||
EBUILD clamav-unofficial-sigs-5.6.2.ebuild 1939 SHA256 9ca960f5092510a4432aa3385dd1ccf6ad25cc9e1a0bff8a1f1fde1a4ea5c3b8 SHA512 5b2190bd677122fd5ac6b333b617febab7f793d06cc686c324ca74eda7a72eef4c0ec5b778caa79948631dc143b3adaa818bf25074f207b9458a57587b93fc36 WHIRLPOOL 71be946f2484c922bdce72ca46b89759116910d142a3c944199cb09169afe45235619692917e29ee5c1a7be6e7e0ad75c9af4eb79e30ead19097479d672a3e3e
|
||||
AUX clamav-unofficial-sigs.logrotate 109 BLAKE2B 662b268f5332f088670fb762dd5162c0fccba68ca3fad5d089f2330057f1d52c35785924e56a8174c3d9c2d7d6c9232f3d41adb83c2cd88c55d096b764781ed8 SHA512 3d79caf1bbc29218aacda9c6c411b6b9e827644c3a89a3a1b9e0d89baeb7927cdbda3322c9b5a5186e53f0efa598e165d10cfa698936a687bd6279f6e3866830
|
||||
DIST clamav-unofficial-sigs-7.2.5.tar.gz 68425 BLAKE2B 74ae5676bbb7612b845d38e3419c73e238246168ee1dd16ae9609e349272afb1e4ee6b79d30de782263ee8083aaa5558db1a28a8103f4bf156fe0640166aac16 SHA512 04f97782d1b1632834eeeb5c2c90d18490c154a9a73c8ec461af5d42e7786dc6650dbb12520868a2693f849bfba71d208d3981a2e28a8a6092780745a84c9b57
|
||||
EBUILD clamav-unofficial-sigs-7.2.5.ebuild 1926 BLAKE2B ecab147e5b9e9c48b13a610f08883b4ce8ed69098f90c1950c653ea63789f0229d566c15212426d2da0c6350949f134b73fe28e53b415ed6f29d043d05f52f3a SHA512 866fe77ca6a188cf34a7d1b0181dcda0afd263a49d07e49d2156568a8d38ead993060ee9d5df33614767bbe922940f00848915c37d4cb211794738a7428c0d42
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EAPI=8
|
||||
|
||||
inherit systemd
|
||||
|
||||
@ -32,17 +32,16 @@ src_install() {
|
||||
# The script's working directory (set in the conf file). By default,
|
||||
# it runs as clamav/clamav.
|
||||
diropts -m 0755 -o clamav -g clamav
|
||||
dodir "/var/lib/${PN}"
|
||||
keepdir "/var/lib/${PN}"
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
doins "${FILESDIR}/${PN}.logrotate"
|
||||
|
||||
insinto "/etc/${PN}"
|
||||
doins config/{master,user}.conf
|
||||
newins config/os.gentoo.conf os.conf
|
||||
newins config/os/os.gentoo.conf os.conf
|
||||
|
||||
doman "${FILESDIR}/${PN}.8"
|
||||
dodoc README.md
|
||||
dodoc INSTALL.md README.md
|
||||
|
||||
sed -i 's#ExecStart=/usr/local/sbin/clamav-unofficial-sigs.sh#ExecStart=/usr/sbin/clamav-unofficial-sigs.sh#' systemd/clamav-unofficial-sigs.service || die
|
||||
systemd_dounit "systemd/clamav-unofficial-sigs.service"
|
@ -1,75 +0,0 @@
|
||||
|
||||
.\" Manual page for eXtremeSHOK.com ClamAV Unofficial Signature Updater
|
||||
.TH clamav-unofficial-sigs 8 "07 May 2016" "Version: 5.3.0" "SCRIPT COMMANDS"
|
||||
.SH NAME
|
||||
clamav-unofficial-sigs \- Download, test, and install third-party ClamAV signature databases.
|
||||
.SH SYNOPSIS
|
||||
.B clamav-unofficial-sigs
|
||||
.RI [ options ]
|
||||
.SH DESCRIPTION
|
||||
\fBclamav-unofficial-sigs\fP provides a simple way to download, test, and update third-party signature databases provided by Sanesecurity, FOXHOLE, OITC, Scamnailer, BOFHLAND, CRDF, Porcupine, Securiteinfo, MalwarePatrol, Yara-Rules Project, etc. It will also generate and install cron, logrotate, and man files.
|
||||
.SH UPDATES
|
||||
Script updates can be found at: \fBhttps://github.com/extremeshok/clamav-unofficial-sigs\fP
|
||||
.SH OPTIONS
|
||||
This script follows the standard GNU command line syntax.
|
||||
.LP
|
||||
\fB Usage: clamav\-unofficial\-sigs.sh \fR [OPTION] [PATH|FILE]
|
||||
.TP
|
||||
\fB \-c, \-\-config \fR Use a specific configuration file or directory eg: '\-c /your/dir' or ' \-c /your/file.name' Note: If a directory is specified the directory must contain atleast: master.conf, os.conf or user.conf Default Directory: configgentoo
|
||||
.TP
|
||||
\fB \-F, \-\-force \fR Force all databases to be downloaded, could cause ip to be blocked
|
||||
.TP
|
||||
\fB \-h, \-\-help \fR Display this script's help and usage information
|
||||
.TP
|
||||
\fB \-V, \-\-version \fR Output script version and date information
|
||||
.TP
|
||||
\fB \-v, \-\-verbose \fR Be verbose, enabled when not run under cron
|
||||
.TP
|
||||
\fB \-s, \-\-silence \fR Only output error messages, enabled when run under cron
|
||||
.TP
|
||||
\fB \-d, \-\-decode\-sig \fR Decode a third\-party signature either by signature name (eg: Sanesecurity.Junk.15248) or hexadecimal string. This flag will 'NOT' decode image signatures
|
||||
.TP
|
||||
\fB \-e, \-\-encode\-string \fR Hexadecimal encode an entire input string that can be used in any '*.ndb' signature database file
|
||||
.TP
|
||||
\fB \-f, \-\-encode\-formatted \fR Hexadecimal encode a formatted input string containing signature spacing fields '{}, (), *', without encoding the spacing fields, so that the encoded signature can be used in any '*.ndb' signature database file
|
||||
.TP
|
||||
\fB \-g, \-\-gpg\-verify \fR GPG verify a specific Sanesecurity database file eg: '\-g filename.ext' (do not include file path)
|
||||
.TP
|
||||
\fB \-i, \-\-information \fR Output system and configuration information for viewing or possible debugging purposes
|
||||
.TP
|
||||
\fB \-m, \-\-make\-database \fR Make a signature database from an ascii file containing data strings, with one data string per line. Additional information is provided when using this flag
|
||||
.TP
|
||||
\fB \-t, \-\-test\-database \fR Clamscan integrity test a specific database file eg: '\-s filename.ext' (do not include file path)
|
||||
.TP
|
||||
\fB \-o, \-\-output\-triggered \fR If HAM directory scanning is enabled in the script's configuration file, then output names of any third\-party signatures that triggered during the HAM directory scan
|
||||
.TP
|
||||
\fB \-w, \-\-whitelist \fR Adds a signature whitelist entry in the newer ClamAV IGN2 format to 'my\-whitelist.ign2' in order to temporarily resolve a false\-positive issue with a specific third\-party signature. Script added whitelist entries will automatically be removed if the original signature is either modified or removed from the third\-party signature database
|
||||
.TP
|
||||
\fB \-\-check\-clamav \fR If ClamD status check is enabled and the socket path is correctly specifiedthen test to see if clamd is running or not
|
||||
.TP
|
||||
\fB \-\-install\-all \fR Install and generate the cron, logroate and man files, autodetects the values based on your config files
|
||||
.TP
|
||||
\fB \-\-install\-cron \fR Install and generate the cron file, autodetects the values based on your config files
|
||||
.TP
|
||||
\fB \-\-install\-logrotate \fR Install and generate the logrotate file, autodetects the values based on your config files
|
||||
.TP
|
||||
\fB \-\-install\-man \fR Install and generate the man file, autodetects the values based on your config files
|
||||
.TP
|
||||
\fB \-\-remove\-script \fR Remove the clamav\-unofficial\-sigs script and all of its associated files and databases from the system
|
||||
.TP
|
||||
.SH SEE ALSO
|
||||
.BR clamd (8),
|
||||
.BR clamscan (1)
|
||||
.SH COPYRIGHT
|
||||
Copyright (c) Adrian Jon Kriel :: admin@extremeshok.com
|
||||
.TP
|
||||
You are free to use, modify and distribute, however you may not remove this notice.
|
||||
.SH LICENSE
|
||||
BSD (Berkeley Software Distribution)
|
||||
.SH BUGS
|
||||
Report bugs to \fBhttps://github.com/extremeshok/clamav-unofficial-sigs\fP
|
||||
.SH AUTHOR
|
||||
Adrian Jon Kriel :: admin@extremeshok.com
|
||||
Originially based on Script provide by Bill Landry
|
||||
|
||||
|
3
app-backup/benno-archive/Manifest
Normal file
3
app-backup/benno-archive/Manifest
Normal file
@ -0,0 +1,3 @@
|
||||
AUX benno-archive.tmpfilesd 46 BLAKE2B dbc69e5d81096caeae5371211af66f1bc63466e37a35b6cfdb78d4872a379b6daf2037fcaf9f82bd04a88d970161a4c56656a6ca966d90455a61e5dc61a612e2 SHA512 991891443cbc1d337611e0f6429489df57ed0be40f807cf4d78f1101b93bb20380cf542420295bb9cf124c774d13d72409e29d97aba446cd631873c37b7afd90
|
||||
DIST benno-archive-2.10.3.tgz 30505 BLAKE2B 54b37b18220fad86c0b9ea8b8ca4c2461fb01053caa8428245c77257ec54c060797681dc1ff932865efe0d919abecc8ab1eaabf69ea0b1755b3e73c8dce982c8 SHA512 8768214c0254332c1486fcfd97772a01aa0e9595ff3d5fcb70d9830c6f4d9833187fa7be806c9856a1530f12b6b91db89b0c22fe169d1da40b894668e29fe95e
|
||||
EBUILD benno-archive-2.10.3.ebuild 1283 BLAKE2B a2096ce6dcadc9cf92165a85c2055782ca3e5125e76b89795104d78b771eb6fbf91c0d125e9ebee7b2dff26dc3fa72e673e25eb86b49b15d0aaa3587b19ef635 SHA512 0ddf86b783c5b965ee73d192e4bce9100aa41d7b6fa9f56bb49683e99d742726dac5339c5eae902c4324face4fcd2d662f22c18df4e6a3519e4efa18e060c518
|
66
app-backup/benno-archive/benno-archive-2.10.3.ebuild
Normal file
66
app-backup/benno-archive/benno-archive-2.10.3.ebuild
Normal file
@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Benno Mailarchive"
|
||||
HOMEPAGE="https://www.benno-mailarchiv.de/"
|
||||
SRC_URI="https://www.benno-mailarchiv.de/download/tgz/${P}.tgz"
|
||||
S=${WORKDIR}
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
||||
|
||||
RESTRICT="mirror binchecks"
|
||||
|
||||
BDEPEND="
|
||||
app-backup/benno-core
|
||||
app-backup/benno-lib
|
||||
"
|
||||
RDEPEND="
|
||||
${BDEPEND}
|
||||
dev-lang/perl
|
||||
"
|
||||
|
||||
INSTALL_DIR=/opt/benno
|
||||
|
||||
src_install() {
|
||||
keepdir /var/log/benno
|
||||
fowners benno:benno /var/log/benno
|
||||
fperms 0770 /var/log/benno
|
||||
|
||||
keepdir /srv/benno/archive
|
||||
keepdir /srv/benno/inbox
|
||||
fowners -R benno:benno /srv/benno
|
||||
fperms 2770 /srv/benno/inbox
|
||||
|
||||
doinitd etc/init.d/benno-archive
|
||||
|
||||
systemd_dounit lib/systemd/system/benno-archive.service
|
||||
|
||||
newtmpfiles "${FILESDIR}/${PN}".tmpfilesd "${PN}".conf
|
||||
|
||||
dodir "${INSTALL_DIR}"
|
||||
cp -a "${S}"/${INSTALL_DIR}/bennoarchive.jar "${ED}${INSTALL_DIR}" || die
|
||||
fowners -R benno:benno "${INSTALL_DIR}"
|
||||
|
||||
insinto /etc/default
|
||||
doins etc/default/benno-archive
|
||||
|
||||
insinto /etc/benno
|
||||
doins etc/benno/archive-log4j.xml
|
||||
fowners -R root:benno /etc/benno
|
||||
fperms 0750 /etc/benno
|
||||
|
||||
into ${INSTALL_DIR}
|
||||
dosbin opt/benno/sbin/benno-mgmt
|
||||
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process "${PN}.conf"
|
||||
}
|
1
app-backup/benno-archive/files/benno-archive.tmpfilesd
Normal file
1
app-backup/benno-archive/files/benno-archive.tmpfilesd
Normal file
@ -0,0 +1 @@
|
||||
d /var/cache/benno-archive 0770 benno benno -
|
2
app-backup/benno-core/Manifest
Normal file
2
app-backup/benno-core/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
DIST benno-core-2.10.3.tgz 300467 BLAKE2B 85995425110ea1ea38478db22bad1e84cfcf12e9e5ac0b0b7b127377a75739c6fb8ac993bf3092839d4ad33958b6965bdaf7aaf6a5e594be02742ca35ba14d7f SHA512 d0204540dce256ab6660435fc09baf46bbfda73d25d393f7aafe3415a524dbb80eb47d40b100661c3c1a3d1780b8ee5cf94c7d960374f6a55f6084d31be21c79
|
||||
EBUILD benno-core-2.10.3.ebuild 677 BLAKE2B 14900a4e11f4ac2ab54c08a25d04c3ec90c19aeefa8dbc19815dcade30c99c07a9b1702bcff2452716d2bb94e633d6f98857c77b435b73d23521889a6c94bf8c SHA512 11a724a1a9c2f165f6ef7d23730aff159806ed0a37bd726456d9b114dd82eb55c732153b6ab3f11437dfb023a24a87f9ddd1cdb206bf8ac44d2bbb049084e314
|
33
app-backup/benno-core/benno-core-2.10.3.ebuild
Normal file
33
app-backup/benno-core/benno-core-2.10.3.ebuild
Normal file
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Benno Mailarchive Core"
|
||||
HOMEPAGE="https://www.benno-mailarchiv.de/"
|
||||
SRC_URI="https://www.benno-mailarchiv.de/download/tgz/${P}.tgz"
|
||||
S=${WORKDIR}
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
||||
RESTRICT="mirror binchecks"
|
||||
|
||||
BDEPEND="
|
||||
app-backup/benno-lib
|
||||
"
|
||||
RDEPEND="
|
||||
${BDEPEND}
|
||||
"
|
||||
INSTALL_DIR=/opt/benno
|
||||
|
||||
src_install() {
|
||||
dodir "${INSTALL_DIR}"
|
||||
cp -a "${S}"/${INSTALL_DIR}/lib "${ED}${INSTALL_DIR}" || die
|
||||
fowners -R benno:benno "${INSTALL_DIR}"
|
||||
|
||||
insinto /etc/benno
|
||||
doins etc/benno/benno.xml
|
||||
fowners -R root:benno /etc/benno
|
||||
fperms 0750 /etc/benno
|
||||
}
|
2
app-backup/benno-imap/Manifest
Normal file
2
app-backup/benno-imap/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
DIST benno-imap-3.0.4.tgz 21275 BLAKE2B 90715132d684103afc465a2c92740e63094af26443b1a0577b72d09894b25306b8adbe3b7189e5ac34cd2a5e54c5e33c1e55555160ee41114ae27b725404c494 SHA512 2e4b953ccd5d08d106981daab6d46160392b05079e11abeb6af10c608d82907922d18d11eb4c2534bb68651aeb0bdfaf7a036fbaefbf2af5d270f7d4714b36b6
|
||||
EBUILD benno-imap-3.0.4.ebuild 314 BLAKE2B 67ca030061d0690d5f03adfbdcfcad9e0c1af5e12f88b6a5d9f98083c80ee60490a3b176934edb91bda901237c0fb6fae494f51ddc5b76f259bee42f70eae8c3 SHA512 794e33f4944e3823013279e2c968cbb9fed664a021c0e6e03764fb732e8d653b2215eda8de62dad28623ad9765e7c572f55b5aaadbb7007d6799afebda1d53ce
|
14
app-backup/benno-imap/benno-imap-3.0.4.ebuild
Normal file
14
app-backup/benno-imap/benno-imap-3.0.4.ebuild
Normal file
@ -0,0 +1,14 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
##inherit
|
||||
|
||||
DESCRIPTION="Benno Mailarchive IMAP"
|
||||
HOMEPAGE="https://www.benno-mailarchiv.de/"
|
||||
SRC_URI="https://www.benno-mailarchiv.de/download/tgz/${P}.tgz"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
2
app-backup/benno-lib/Manifest
Normal file
2
app-backup/benno-lib/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
DIST benno-lib-2.10.0.tgz 98542506 BLAKE2B 67b7a63236760079d79401e5e23a5eb5d33ef627302ed99fca650653425cd5df15deef2c04790df7ee0e284e0a60776b72f9fd867dd097cee459701281ec5f82 SHA512 5e9d916e8d1c4d98ec8d9f53beee8195ed1384e5f83908c6de368b9fd434f92e0be5fdeb972d10debdb2f5e6966f722fc9a410cff9f77d1b2a3e5a69a37677ba
|
||||
EBUILD benno-lib-2.10.0.ebuild 605 BLAKE2B 2cfc693964ac821d23b20ef7a48ff17118be7a2ad764092000d6de0490cad2f92b2511cfce4ef918e89ff545ccbdc750cbf293c874a2f752d8b96c763a672fe9 SHA512 a533ce0952016e07972425877554134610454580e7cad99c22fa30266324620fa5b5f24535db9efbba179d8a8e225f8e6790329f7ffd61da834b03f0c444928b
|
31
app-backup/benno-lib/benno-lib-2.10.0.ebuild
Normal file
31
app-backup/benno-lib/benno-lib-2.10.0.ebuild
Normal file
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Benno Mailarchive Lib"
|
||||
HOMEPAGE="https://www.benno-mailarchiv.de/"
|
||||
SRC_URI="https://www.benno-mailarchiv.de/download/tgz/${P}.tgz"
|
||||
S=${WORKDIR}/opt/benno
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
||||
RESTRICT="mirror binchecks"
|
||||
|
||||
BDEPEND="
|
||||
acct-group/benno
|
||||
acct-user/benno
|
||||
"
|
||||
RDEPEND="
|
||||
${BDEPEND}
|
||||
dev-java/openjdk-jre-bin
|
||||
"
|
||||
|
||||
INSTALL_DIR=/opt/benno
|
||||
|
||||
src_install() {
|
||||
dodir "${INSTALL_DIR}"
|
||||
cp -a "${S}"/lib "${ED}${INSTALL_DIR}" || die
|
||||
fowners -R benno:benno "${INSTALL_DIR}"
|
||||
}
|
14
app-backup/benno-pop3/benno-pop3-2.10.0.ebuild
Normal file
14
app-backup/benno-pop3/benno-pop3-2.10.0.ebuild
Normal file
@ -0,0 +1,14 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
##inherit
|
||||
|
||||
DESCRIPTION="Benno Mailarchive POP3"
|
||||
HOMEPAGE="https://www.benno-mailarchiv.de/"
|
||||
SRC_URI="https://www.benno-mailarchiv.de/download/tgz/${P}.tgz"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
2
app-backup/benno-rest-lib/Manifest
Normal file
2
app-backup/benno-rest-lib/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
DIST benno-rest-lib-2.10.1.tgz 9918010 BLAKE2B 0b2d4389505da04f933b3508e43f3dce74df83ba0f8b3971176d190c6fd5c4582344c43dd72db44acbeca6d56c5c93155132ef3e3ea04049f4ef416148835e32 SHA512 40943403659168504ed660e91ec3fc91d61132667767a0fdfdbd4488ff16df60db8de6b28e953ae3d349c8cc9aa331360b885ca13021c0e7f04ba54c853b6f8c
|
||||
EBUILD benno-rest-lib-2.10.1.ebuild 574 BLAKE2B 7ca8a0530e7091bc83db474d3a26d31de0ce409c326155ee9e40f453c35c57eac35dadad4694f6efcb6c8921c806c590458074d5b9250f553cbff02032dc9a60 SHA512 aa0c0903f376b52244b0ea9233a426b3ac8a2eb5f1d0385061d123500c758249d6cbc74b78fdfd24acd3f44b2d85bf8872c44c1d91fd1c12e82f413b83216ad9
|
28
app-backup/benno-rest-lib/benno-rest-lib-2.10.1.ebuild
Normal file
28
app-backup/benno-rest-lib/benno-rest-lib-2.10.1.ebuild
Normal file
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Benno Mailarchive Rest Lib"
|
||||
HOMEPAGE="https://www.benno-mailarchiv.de/"
|
||||
SRC_URI="https://www.benno-mailarchiv.de/download/tgz/${P}.tgz"
|
||||
S=${WORKDIR}
|
||||
|
||||
LICENSE="Benno"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
||||
RESTRICT="mirror binchecks"
|
||||
|
||||
BDEPEND="
|
||||
app-backup/benno-lib
|
||||
"
|
||||
RDEPEND="
|
||||
${BDEPEND}
|
||||
"
|
||||
INSTALL_DIR=/opt/benno
|
||||
|
||||
src_install() {
|
||||
dodir "${INSTALL_DIR}"
|
||||
cp -a "${S}"/${INSTALL_DIR}/lib "${ED}${INSTALL_DIR}" || die
|
||||
fowners -R benno:benno "${INSTALL_DIR}"
|
||||
}
|
3
app-backup/benno-rest/Manifest
Normal file
3
app-backup/benno-rest/Manifest
Normal file
@ -0,0 +1,3 @@
|
||||
AUX benno-rest.tmpfilesd 43 BLAKE2B 6e1af722ab54dc8607e866bfc94b7a0dbf34f4b98a62d2932f6ce2a9339cca132f14094e51ca06a8c721b1eaf4405d69edda4040691eaf11413291a37044d5eb SHA512 94cc0b2175e8f21014d582b24cb272ea1d8078eb503baa520642729583b5bb64d3fd01ab5fe5a89b67d78c68cc64ea00714007b733d53c3283e1f15affbf0b61
|
||||
DIST benno-rest-2.10.3.tgz 281491 BLAKE2B 5d664dc74ee06d48f2c25fb05095bb9c8d492dd889017aa864e1640d7ea767caccc79774ab24d9ba7aea0bdb9ce52983e1426054a194734b9b323efd0d218173 SHA512 8867dc386f26c47929ccb36f048b7e8df3c4808755231838885a3cdcc4f3917a831d6ab897bff3e8ea3efebcae631aa8820e44854976810bc1111c16a7dac9d2
|
||||
EBUILD benno-rest-2.10.3.ebuild 1673 BLAKE2B e00a0f60962d7f713b78fa4f8b696513301bb155dbbb55fab66c0163b97be824c952e6f153e26bb869ed7689e9e38746742a2e283a9f2e27bcedaa27a604d58f SHA512 f050637a3767f579ad78cc12c83533724ac1ad32d4068dad9621138d1dbb597fa5f9ca23cf90b488413c0e936e9cc0e281afcc37a7333dc972cd157e54dadbd0
|
78
app-backup/benno-rest/benno-rest-2.10.3.ebuild
Normal file
78
app-backup/benno-rest/benno-rest-2.10.3.ebuild
Normal file
@ -0,0 +1,78 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Benno Mailarchive Rest"
|
||||
HOMEPAGE="https://www.benno-mailarchiv.de/"
|
||||
SRC_URI="https://www.benno-mailarchiv.de/download/tgz/${P}.tgz"
|
||||
S=${WORKDIR}
|
||||
|
||||
LICENSE="Benno"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
||||
|
||||
RESTRICT="mirror binchecks"
|
||||
|
||||
BDEPEND="
|
||||
acct-group/benno
|
||||
acct-user/bennorest
|
||||
app-backup/benno-rest-lib
|
||||
"
|
||||
RDEPEND="
|
||||
${BDEPEND}
|
||||
dev-perl/JSON
|
||||
dev-perl/libwww-perl
|
||||
virtual/perl-MIME-Base64
|
||||
"
|
||||
|
||||
INSTALL_DIR=/opt/benno
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
|
||||
if [ -f /etc/benno-web/rest.conf ];then
|
||||
cat /etc/benno-web/rest.conf | grep ^SHARED_SECRET |perl -pe 's/^.+=\s*//' >> etc/benno/rest.secret
|
||||
else
|
||||
dd if=/dev/urandom bs=1k count=1 status=none | tr -dc a-zA-Z0-9 | head -c 20 > etc/benno/rest.secret
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /var/log/benno
|
||||
fowners benno:benno /var/log/benno
|
||||
fperms 0770 /var/log/benno
|
||||
|
||||
systemd_dounit lib/systemd/system/benno-rest.service
|
||||
|
||||
newtmpfiles "${FILESDIR}/${PN}".tmpfilesd "${PN}".conf
|
||||
|
||||
dodir "${INSTALL_DIR}"
|
||||
cp -a "${S}"/${INSTALL_DIR}/bennorest.jar "${ED}${INSTALL_DIR}" || die
|
||||
fowners -R benno:benno "${INSTALL_DIR}"
|
||||
|
||||
insinto /etc/default
|
||||
doins etc/default/benno-rest
|
||||
|
||||
insinto /etc/benno
|
||||
doins etc/benno/jetty.xml
|
||||
doins etc/benno/rest-log4j.xml
|
||||
fowners -R root:benno /etc/benno
|
||||
fperms 0750 /etc/benno
|
||||
doins etc/benno/rest.secret
|
||||
fowners benno:benno /etc/benno/rest.secret
|
||||
fperms 0640 /etc/benno/rest.secret
|
||||
|
||||
insinto /etc/benno-web
|
||||
|
||||
dosbin usr/sbin/benno-report
|
||||
|
||||
exeinto /etc/cron.weekly
|
||||
doexe etc/cron.weekly/benno-rest
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process "${PN}.conf"
|
||||
}
|
1
app-backup/benno-rest/files/benno-rest.tmpfilesd
Normal file
1
app-backup/benno-rest/files/benno-rest.tmpfilesd
Normal file
@ -0,0 +1 @@
|
||||
d /var/cache/benno-rest 0770 benno benno -
|
3
app-backup/benno-web/Manifest
Normal file
3
app-backup/benno-web/Manifest
Normal file
@ -0,0 +1,3 @@
|
||||
AUX benno-web.tmpfilesd 56 BLAKE2B 87c8cb8689bc98a124ffa3812f00963d4dd0204c0232a14b7d18fd250b7dbbfe94f901269655b06234e8e4ea6168988471d1dd92ac0341c29c37a3c2fb9f51a8 SHA512 d3695eca50353b4889340ccf036636277704b049e74d411c47621198f996ac46195c28c9f26264a7034f4fa8d96ed1288c44800cdc36b889ad686cfe98e7c01b
|
||||
DIST benno-web-2.10.5.tgz 1847729 BLAKE2B 6c3ebe5a88d461fd2707149c64f7ad4c527696496d417cbd6f751c59e96ff93f3efa97d597f912719d30c4159ac7216314e3f6e92585ad370874826f533ff7a5 SHA512 76e67dd53db990c3c779526b504b4df8023a24e60999a0bf0cb118274ae2ac4692d6fb20a7ea8a7f439a95aee68de4ec6de2557b79f4e90aab2870da593817ce
|
||||
EBUILD benno-web-2.10.5.ebuild 3095 BLAKE2B 2ffca2d1bd921b933f0338be27138e5217e7e6a7d7b5a86ad9ae4be48a52ac9a2f8eaf358a6915d65cdc4611598d721c9cfc40bde421e09552012194c2c9b4a5 SHA512 a313eaa9bb2fb4560631be87868347ba5cd67a6948531b05e4d4a5068d3f2c0dd1ba7fd4510a8cf430afe754e82db15b09ca0d8a1089239a4553b905d5bb3735
|
105
app-backup/benno-web/benno-web-2.10.5.ebuild
Normal file
105
app-backup/benno-web/benno-web-2.10.5.ebuild
Normal file
@ -0,0 +1,105 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit tmpfiles
|
||||
|
||||
DESCRIPTION="Benno Mailarchive Web"
|
||||
HOMEPAGE="https://www.benno-mailarchiv.de/"
|
||||
SRC_URI="https://www.benno-mailarchiv.de/download/tgz/${P}.tgz"
|
||||
S=${WORKDIR}
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
||||
|
||||
RESTRICT="mirror binchecks"
|
||||
|
||||
BDEPEND="
|
||||
app-backup/benno-rest
|
||||
dev-db/sqlite:3
|
||||
dev-lang/php:*[apache2,curl,pdo,sqlite]
|
||||
www-servers/apache
|
||||
"
|
||||
RDEPEND="
|
||||
${BDEPEND}
|
||||
dev-perl/Crypt-Eksblowfish
|
||||
dev-perl/Crypt-Rijndael
|
||||
dev-perl/DBD-SQLite
|
||||
dev-perl/DBI
|
||||
dev-perl/Data-Entropy
|
||||
dev-perl/Data-Float
|
||||
dev-perl/TermReadKey
|
||||
dev-perl/perl-ldap
|
||||
virtual/perl-Carp
|
||||
virtual/perl-Digest-MD5
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
|
||||
echo -n 'SHARED_SECRET = ' > etc/benno-web/rest.conf
|
||||
if [ -f /etc/benno/rest.secret ];then
|
||||
cat /etc/benno/rest.secret >> etc/benno-web/rest.conf
|
||||
else
|
||||
dd if=/dev/urandom bs=1k count=1 status=none | tr -dc a-zA-Z0-9 | head -c 20 >> etc/benno-web/rest.conf
|
||||
fi
|
||||
|
||||
dd if=/dev/urandom bs=1k count=1 status=none | tr -dc 'a-zA-Z0-9' | fold -w 20 | head -n 1 > etc/benno-web/permalink.pass
|
||||
|
||||
echo "# benno_auth.d configuration file" >> etc/benno-web/auth.conf
|
||||
echo "#" >> etc/benno-web/auth.conf
|
||||
echo "module_dir=/etc/benno-web/auth.d" >> etc/benno-web/auth.conf
|
||||
echo "" >> etc/benno-web/auth.conf
|
||||
|
||||
mkdir -p var/lib/benno-web
|
||||
sqlite3 "var/lib/benno-web/bennoweb.sqlite" < usr/share/benno-web/db-create.sql 2>/dev/null
|
||||
sqlite3 "var/lib/benno-web/bennoweb.sqlite" < usr/share/benno-web/db-update_2.0.1.sql 2>/dev/null
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /etc/benno-web
|
||||
doins etc/benno-web/apache-2.4.conf etc/benno-web/benno.conf etc/benno-web/benno.conf.ex etc/benno-web/imapauth.conf etc/benno-web/ldapauth.conf
|
||||
doins etc/benno-web/auth.conf etc/benno-web/rest.conf etc/benno-web/permalink.pass
|
||||
fowners -R root:apache /etc/benno-web
|
||||
fperms 0750 /etc/benno-web
|
||||
fperms 0640 /etc/benno-web/benno.conf
|
||||
|
||||
exeinto /usr/lib/benno-web
|
||||
doexe usr/lib/benno-web/*
|
||||
|
||||
## dosym /usr/lib/benno-web/benno_ldapauth /etc/benno-web/auth.d/40_benno_ldapauth
|
||||
dosym /usr/lib/benno-web/benno_dbauth /etc/benno-web/auth.d/50_benno_dbauth
|
||||
|
||||
insinto /usr/share/
|
||||
doins -r usr/share/benno-web
|
||||
fperms 0755 /usr/share/benno-web/db-update_2.8.4.pl
|
||||
fperms 0755 /usr/share/benno-web/db-update_2.10.3.pl
|
||||
fperms 0755 /usr/share/benno-web/sendmail_mark
|
||||
|
||||
rm usr/sbin/benno-ptf
|
||||
dosbin usr/sbin/*
|
||||
|
||||
insinto /var/lib/benno-web/
|
||||
doins var/lib/benno-web/bennoweb.sqlite
|
||||
fowners -R apache:apache /var/lib/benno-web
|
||||
fperms 0750 /var/lib/benno-web
|
||||
fperms 0660 /var/lib/benno-web/bennoweb.sqlite
|
||||
|
||||
insinto /srv/benno/bennoweb
|
||||
doins -r srv/benno/bennoweb/htdocs
|
||||
doins -r srv/benno/bennoweb/templates
|
||||
|
||||
newtmpfiles "${FILESDIR}/${PN}".tmpfilesd "${PN}".conf
|
||||
|
||||
dodoc usr/share/doc/benno-web/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process "${PN}.conf"
|
||||
|
||||
einfo "Please run database-updates after install and update:"
|
||||
einfo " /usr/share/benno-web/db-update_2.8.4.pl"
|
||||
einfo " /usr/share/benno-web/db-update_2.10.3.pl"
|
||||
}
|
1
app-backup/benno-web/files/benno-web.tmpfilesd
Normal file
1
app-backup/benno-web/files/benno-web.tmpfilesd
Normal file
@ -0,0 +1 @@
|
||||
d /var/cache/benno-web/templates_c 0755 apache apache -
|
17
dev-perl/Data-Entropy/Data-Entropy-0.007.ebuild
Normal file
17
dev-perl/Data-Entropy/Data-Entropy-0.007.ebuild
Normal file
@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DIST_AUTHOR=ZEFRAM
|
||||
DIST_VERSION=0.007
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="entropy (randomness) management"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
||||
|
||||
BDEPEND="
|
||||
dev-perl/Module-Build
|
||||
"
|
2
dev-perl/Data-Entropy/Manifest
Normal file
2
dev-perl/Data-Entropy/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
DIST Data-Entropy-0.007.tar.gz 43667 BLAKE2B 1ea01b75582b8191df4bc7d8e353cf2593a05f1ada14e58d07e57bd66c9e680c23b8b3e9fbb3f3206d79b2f52e483325d9b27c2f9820afcdfba94a68f95e1758 SHA512 f845fabcac67ab16d44f8bbefa0fc09df171efd6cd9ae2f2ee7e189cbb707cf074705763a022941cbfdda5ab4e03b85eacdb7942a504644a40970c42b5a7e0b9
|
||||
EBUILD Data-Entropy-0.007.ebuild 281 BLAKE2B cdfa049a70218e8cecd4b22563abde215385063f7f436c711d73d410715efa85621038bcfa81d89ec0220c9f61e49eba4ce091e461138d0f429fb149ac71b870 SHA512 757ba238bc562faec869c3858322755f92f92fafc9f01b72d6f28c833efa26811056630ca578ac0e31b47695892a8f2aa3a483407dc306b1fd7ee07205b114a4
|
@ -1,4 +1,5 @@
|
||||
AUX sogod.confd 117 BLAKE2B c47c8a6376967682571cd62766d0cf2422f35dc5ecbf599c616aee2cc5d6b2830ae3c4f3483924e15c59f44610eb8be656c21324f17270dd5eca6eb27780fe34 SHA512 d93bde8c500bf8452d5f32efc35ec12f436afc498d7cc6ac1f55769f8696c9b41cc5edec829a19ea01b24c0d3a2c7901fc797cb04ced371bc8e0c3e6e243f15b
|
||||
AUX sogod.initd 681 BLAKE2B b8a55f93a0e623bb5aa13d10658aba644cb9a532d7a5c02beeee8d7e01365944531e081afe77562da8da77a42bec10a125bd386ede063ad230e0135e8bd56c03 SHA512 d6925d49c24ff6ebfd989016a5c0a707c1bc866070cbd9e4e8eca867ec81fe1ad78bd6606b13349ac7d251f62bd85f239b42f65e1d22015c38b4ad6fe9058f4e
|
||||
DIST sogo-4.3.2.tar.gz 34497548 BLAKE2B fd9e225488bbdb13b4204d1cec9ba0217049681d531e20db3d995a4928f0cd8ff658eb390a0f84375ee28fec2c7a36fb11d836939a8731e828be8d38728a6559 SHA512 eeae11c2e9c4f3d38e64ebdac4950980859af6486e229d1480c9ceb895b63229b42ceea9a17934bfd5e88c5f05c93567f5df5f29f7d68b7dafcdfc44054bc9af
|
||||
EBUILD sogo-4.3.2.ebuild 2351 BLAKE2B 4e347f8f043b2166ab89a0c87ebd60cf9a186f18266d3452a3278392cc7bfe78d8aed22494b30b592a577e2107fa911c7559c4974709ca9c0a093d204b8805f1 SHA512 29cd451baa782af52ac9a956d75e1995544a2f426844ee5b2fe890c0f35cee06746faef344c51b2e0080969dc5c9b40953b1bbcb1cee7e610e2f08ad85a6003b
|
||||
DIST sogo-5.11.2.tar.gz 35252185 BLAKE2B c138a7170c0e94bcd28d6e2b0dcfe79a8a0361f6df4a2afdcf17d260c429600e933b0a19e903385e2d65d3234e7a2dc15bd7f0c9cb9133f3e636389578c4f43a SHA512 c48f1a06d0bb9d4e1d56ea9cc1c03b79860fb8415d37994047f2f06e28a9588b68e1ee0a473c123d00b98bf7b4924b4d9188ec4d8fc184eac1fc8233818fa8b2
|
||||
EBUILD sogo-5.11.2.ebuild 2249 BLAKE2B cb4adf41ecd599e920ca014cd39e30550f39213dc0339f1d011681029a120e6ebfa1dbd80f63600c342884cef4f84c044d3af8d9529aedadb66356e5de62fd8d SHA512 cdddfec98334bfe6e1ed87d1e2a2e371572b55b7a1cf2932777e4e27becf35d6a6f675ab477272ca9ed23f06a72fb681ad482da9c2e85b0e3ae28de73754ced9
|
||||
MISC metadata.xml 524 BLAKE2B 13a27b9fdf6a2ad25f9f3d44cf260d7df43d2805af5fca995dc71ec5fb0b7828ea8f6eb60d28d70155e70f695424a9676e432cfe6a62d1e74ae0c500115c15d2 SHA512 4bad2240b9fdb0ce03dccb82502ee19ab148651128cfb1d67355778313a7b24dc8c64a6516ba0d8a4bf8852180de9e560b5a56176fd69b259d333552cd86a1f4
|
||||
|
15
gnustep-apps/sogo/metadata.xml
Normal file
15
gnustep-apps/sogo/metadata.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>gnustep@gentoo.org</email>
|
||||
<name>Gentoo GNUstep Project</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="activesync">Build the ActiveSync support code</flag>
|
||||
<flag name="sodium">Enable support for Argon2 password schemes using <pkg>dev-libs/libsodium</pkg></flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">Alinto/sogo</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
@ -6,37 +6,32 @@ EAPI=7
|
||||
inherit gnustep-2 vcs-snapshot
|
||||
|
||||
DESCRIPTION="Groupware server built around OpenGroupware.org and the SOPE application server"
|
||||
HOMEPAGE="http://www.sogo.nu"
|
||||
SRC_URI="https://github.com/inverse-inc/sogo/archive/SOGo-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
HOMEPAGE="https://www.sogo.nu"
|
||||
SRC_URI="https://github.com/Alinto/sogo/archive/SOGo-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="activesync gnutls libressl +ssl"
|
||||
IUSE="activesync gnutls +ssl sodium"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/sogo
|
||||
dev-libs/libmemcached
|
||||
dev-libs/libzip
|
||||
net-mail/ytnef
|
||||
net-misc/curl
|
||||
net-misc/memcached
|
||||
>=gnustep-libs/sope-${PV}[ldap]
|
||||
activesync? ( dev-libs/libwbxml )
|
||||
gnutls? ( net-libs/gnutls:= )
|
||||
!gnutls? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
dev-libs/openssl:0=
|
||||
)
|
||||
sodium? ( dev-libs/libsodium:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=gnustep-base/gnustep-make-2.6.3"
|
||||
|
||||
pkg_pretend() {
|
||||
if use ssl && use gnutls && use libressl ; then
|
||||
ewarn "You have enabled both gnutls and libressl, but only"
|
||||
ewarn "one provider can be active. Using gnutls!"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
gnustep-base_src_prepare
|
||||
sed -e "s/validateArgs$//" -i configure \
|
||||
@ -63,11 +58,13 @@ src_configure() {
|
||||
|
||||
egnustep_env
|
||||
|
||||
# saml2 requires liblasso, mfa requires liboath
|
||||
./configure \
|
||||
--disable-strip \
|
||||
--prefix=/usr \
|
||||
--with-ssl="${ssl_provider}" \
|
||||
$(use_enable debug) \
|
||||
$(use_enable sodium) \
|
||||
|| die "configure failed"
|
||||
}
|
||||
|
||||
@ -95,7 +92,7 @@ src_install() {
|
||||
pkg_postinst() {
|
||||
gnustep-base_pkg_postinst
|
||||
elog "SOGo documentation is available online at:"
|
||||
elog "http://www.sogo.nu/downloads/documentation.html"
|
||||
elog "https://www.sogo.nu/support.html#/documentation"
|
||||
elog
|
||||
elog "Apache sample configuration file is available in:"
|
||||
elog "/usr/share/doc/${PF}"
|
@ -1,2 +1,3 @@
|
||||
DIST sope-4.3.2.tar.gz 2203224 BLAKE2B a51f87ac5b6e2cbb432fa1a63f6240d9c3309d600d82040096f65140933d6ac2cc875dc3c0db88e1cd3ff944b3c85fd0155fde03ee27c894e3416c8aec9abedd SHA512 bbdd78d08af26f435f3faaaa89833b7f910443a971ccde34236af30bed54a6ff50b3bee52990902a74a40abf2050db53a198e208e10a515fd6353b0c9e6eb447
|
||||
EBUILD sope-4.3.2.ebuild 1406 BLAKE2B 0ed61de83f8f3547de75e0db042f90df64418ed439f1f8210eb18e1bfdddfb18339138f00a79e5e24309f6e01a07235494e1a3b165b7c665fa032ca3c6dbe41b SHA512 05fc57fbaab00f8ecf401e4e6507532587010eff047947bdad31ff7a0e074e70dd4ce88498147d8fb327037b53ee79bb90bbe8ba33e3fe502f2d622da89996ce
|
||||
DIST sope-5.11.2.tar.gz 2224833 BLAKE2B e5cdf1ba2f38042d827bf5f9b2ce0cb1b8cf0e729536c3d5466c8e9e2c221e8209840209a486c2cd9ae93130e3a797a7c8513b67e2839224e377df8065107952 SHA512 7fe6bd7db01df21c77fc2c0e372beea6e440d301bdb81661a49b0d32aeef97dc7ae245caf7cc0767ab7109e9464feb51d2eac08e5a42d21b0ab126c7ac8caecb
|
||||
EBUILD sope-5.11.2.ebuild 1163 BLAKE2B e0ddb733d90304ecd6bb711a9f91741f0247daf48d2a8e29ee55fe1ef02bf69d2561bca13849ab19493fd49311f2e62baa21942017a0f040c7ebd910b03bc002 SHA512 87fc56b9e1f3269021125933857321a0ab7be99fe628d37b984638de90730ffa26546da566f87cae509deb640e044ce92c23dcb68587bfad505a5dc97ae2205c
|
||||
MISC metadata.xml 339 BLAKE2B 3f965d1faac9bf5cc33947009d04f1eac93566fb0627bd5e7a58992651eae8ad1e5760fb472944bc767bfa813f6fc520d6e944131c1e8854a8c45171326b5682 SHA512 a02900b2bbdc5559bff31e42b0246e103344e2489a6276dfd670204e07afb415b1340fa4f251f045c9f8ed8d54138991102240bfe2694b7ab3c4d0ecb76b9960
|
||||
|
11
gnustep-libs/sope/metadata.xml
Normal file
11
gnustep-libs/sope/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>gnustep@gentoo.org</email>
|
||||
<name>Gentoo GNUstep Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">inverse-inc/sope</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
@ -6,21 +6,20 @@ EAPI=7
|
||||
inherit gnustep-2 vcs-snapshot
|
||||
|
||||
DESCRIPTION="A set of frameworks forming a complete Web application server environment"
|
||||
HOMEPAGE="http://www.sogo.nu/"
|
||||
HOMEPAGE="https://www.sogo.nu/"
|
||||
SRC_URI="https://github.com/inverse-inc/sope/archive/SOPE-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="gnutls ldap libressl mysql postgres +ssl +xml"
|
||||
IUSE="gnutls ldap mysql postgres +ssl +xml"
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/zlib
|
||||
ldap? ( net-nds/openldap )
|
||||
ldap? ( net-nds/openldap:= )
|
||||
gnutls? ( net-libs/gnutls:= )
|
||||
!gnutls? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
dev-libs/openssl:0=
|
||||
)
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
postgres? ( dev-db/postgresql:= )
|
||||
@ -28,13 +27,6 @@ RDEPEND="
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
pkg_pretend() {
|
||||
if use ssl && use gnutls && use libressl ; then
|
||||
ewarn "You have enabled both gnutls and libressl, but only"
|
||||
ewarn "one provider can be active. Using gnutls!"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local ssl_provider
|
||||
if use ssl ; then
|
8
mail-filter/dcc/Manifest
Normal file
8
mail-filter/dcc/Manifest
Normal file
@ -0,0 +1,8 @@
|
||||
AUX dcc-1.3.158-c2x.patch 523 BLAKE2B d2ffe915327f328e6a2a91591f72ae019b3e0dc0ae9550b93aa7884a7bddd3775f74348ac899cf06ccdee67a8f5f4a3fe4b94dedec7505530ef1cfadbcf404ca SHA512 f7f6b1f3d29d74730391d6979a597cdaacd488c78b5fc01da33d001069d4f8807a1eb62c439c016554d2857d063d4362ba5d54700714e6c1978373896edc3947
|
||||
AUX dcc-1.3.158-clang16.patch 559 BLAKE2B 1161c2efb7cab959a394a9d8bb6b538c36c0c9b4a8d64d9282a3dc36f9b8fd47c65afe3a1c016111829434dc6b565806efb36b10c6c1257474ef2aa5668f18b5 SHA512 cdeb4efb775bb036a680dca8fbca494f88ed86615f33d75b4865b28ef3f816ce8472fd38dba95e20152336e3ea3f54acf23a346618539a84e0c5f120df0eedae
|
||||
AUX dcc.confd 274 BLAKE2B 757f3e751028b0c35c166f708c328b506721549267bf1e87e841b746f5d35a6bcbeab6dcebe5deb1c4207b8b11dc0db34925cb93410b556508105cc4c64b6132 SHA512 15b7e4ded3e56e9d15509305df244e29ec7a6c3c163c49a4597e16274317d88f5aff5522984a2a3002f838d0220d04c2ea3def8d771712a11685408a4983d3b4
|
||||
AUX dcc.initd-1.3.154 2793 BLAKE2B 6ad77dfe2a80070c969ed71b0517fdbc0ad0bf2bcc96207fa80a7331d15ba77ac8b5e369c2bec5e164819da876e2ba022f31db3a455d72a6e52387a014d8de38 SHA512 e171e4333d735aa7da99ae322ce04954554a6738b943ca085e51707dd0bf231f7c170211f019027ddf01ec750ed1b8728b5d54b48dee6ee7fc37f8a810aded01
|
||||
AUX dccifd.service 709 BLAKE2B 72d8951d4c55f6f8fee8d1cd6ad9307afa8e9e6996b870ac389814654a7de32743163e8f64c7c24cdcbad609400f8d8b17f4f744f75ea83cd41c3cb6acd5afa0 SHA512 14e5967c3d1188b99903e25474a86eaa0f89cec219fdb3a3a76b203f8ad2c3e4554b205cb79440c3ad843eaa38297032014655cbee1706f1c64684e3c8ed5e4c
|
||||
DIST dcc-2.3.169.tar.Z 1534973 BLAKE2B 602c55e48dad4250598e741945df48ee5ad0f16191a5575058431243814b244e72a8f54e63ab96b712d6970050eb6f665b03664466b1929f48dedfa21cb0ebb5 SHA512 bf8b7f1ac582c5b76879983be17b436eb26029f2bc744ce5c22f45e140050966d3c11bcce819622bbf349a53e23855193e91f1dff07bd6337a8a04afa9e1be07
|
||||
EBUILD dcc-2.3.169.ebuild 3718 BLAKE2B a2a8b7db0f34c0c50881673ecf956d275eafcce4ee9c111006e91c0c473d8d89002a7d05722e2a3ba223334b9fa95e8d5432a727f1a2dc2980f348f7a68c5b2d SHA512 59cfb08300b49c8426feaac6e4e69d9dc54cd1fe4157f3add049e897b44a6569caf6dd8eaf4b8d8d3bfa2c09300744b0649c9eb5d9353ef5c95a30513caf19aa
|
||||
MISC metadata.xml 422 BLAKE2B d19ea81ac39352e2a970b832fa92caecd263726dcd5e83f77e47e59038f37baf0e796ee49f559b0b16c30f563ab7ced157427dcb49435fdb8d146c9b44846427 SHA512 d19223ffe971fa88248f1a2e8b1147a03bf9026a94637585b33a20ca625d51107b3903e82b756c4a364061371564df805f6634e6d0ee3b384320ac5a7393caab
|
140
mail-filter/dcc/dcc-2.3.169.ebuild
Normal file
140
mail-filter/dcc/dcc-2.3.169.ebuild
Normal file
@ -0,0 +1,140 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="Distributed Checksum Clearinghouse"
|
||||
HOMEPAGE="https://www.rhyolite.com/dcc/"
|
||||
SRC_URI="https://www.rhyolite.com/dcc/source/old/${P}.tar.Z"
|
||||
|
||||
LICENSE="DCC GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="cgi ipv6 rrdtool milter"
|
||||
|
||||
RDEPEND="
|
||||
dev-lang/perl
|
||||
|| (
|
||||
net-ftp/ftp
|
||||
net-misc/curl
|
||||
net-misc/wget
|
||||
www-client/fetch
|
||||
)
|
||||
milter? ( mail-filter/libmilter:= )
|
||||
rrdtool? ( net-analyzer/rrdtool )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
dcc_cgibin=var/www/localhost/cgi-bin/dcc
|
||||
dcc_homedir=var/lib/dcc
|
||||
dcc_libexec=usr/sbin
|
||||
dcc_man=usr/share/man
|
||||
dcc_rundir=var/run/dcc
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.3.158-c2x.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
tc-export CC AR RANLIB
|
||||
local myconf=(
|
||||
--bindir="${EPREFIX}"/usr/bin
|
||||
--homedir="${EPREFIX}"/${dcc_homedir}
|
||||
--libexecdir="${EPREFIX}"/${dcc_libexec}
|
||||
--mandir="${EPREFIX}"/usr/share/man
|
||||
--enable-dccifd
|
||||
--enable-server
|
||||
--with-DDC-MD5
|
||||
--with-installroot="${D}"
|
||||
--with-rundir="${EPREFIX}"/${dcc_rundir}
|
||||
--with-uid=root
|
||||
--with-updatedcc_pfile="${EPREFIX}"/${dcc_homedir}/updatecc.pfile
|
||||
--with-db-memory=64
|
||||
--with-max-db-mem=128
|
||||
--with-max-log-size=0
|
||||
--with-make-cmd=${MAKE:-make}
|
||||
$(use_enable ipv6 IPv6)
|
||||
$(use_enable milter dccm)
|
||||
$(use_with cgi cgibin ${dcc_cgibin})
|
||||
$(use_with milter sendmail)
|
||||
)
|
||||
|
||||
einfo "Using config: ${myconf[@]}"
|
||||
|
||||
# This is NOT a normal configure script.
|
||||
./configure "${myconf[@]}" || die "configure failed!"
|
||||
}
|
||||
|
||||
moveconf() {
|
||||
local i
|
||||
for i in $@; do
|
||||
mv "${ED}/${dcc_homedir}/${i}" "${ED}"/etc/dcc || die
|
||||
dosym ../../../etc/dcc/"${i}" "${dcc_homedir}/${i}"
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# stolen from the RPM .spec and modified for gentoo
|
||||
export MANOWN=root
|
||||
export MANGRP=$(id -g -n root)
|
||||
export BINOWN="${MANOWN}"
|
||||
export BINGRP="${MANGRP}"
|
||||
export DCC_PROTO_HOMEDIR="${ED}/${dcc_homedir}"
|
||||
export DCC_CGIBINDIR="${ED}/${dcc_cgibin}"
|
||||
export DCC_SUID="${BINOWN}"
|
||||
export DCC_OWN="${BINOWN}"
|
||||
export DCC_GRP="${BINGRP}"
|
||||
|
||||
dodir /etc/cron.daily "${dcc_homedir}" /usr/bin /usr/sbin /usr/share/man/man{0,8} /etc/dcc
|
||||
if use cgi ; then
|
||||
dodir "${dcc_cgibin}"
|
||||
fi
|
||||
keepdir /var/log/dcc
|
||||
|
||||
emake install
|
||||
|
||||
# branding and setting reasonable defaults
|
||||
sed -e "s/BRAND=\$/BRAND='Gentoo ${PF}'/;" \
|
||||
-e "s/GREY_ENABLE=\$/GREY_ENABLE=off/;" \
|
||||
-e "s/DCCM_LOG_AT=5\$/DCCM_LOG_AT=50/;" \
|
||||
-e "s,DCCM_LOGDIR=\"log\"\$,DCCM_LOGDIR=\"/var/log/dcc\",;" \
|
||||
-e "s/DCCM_ARGS=\$/DCCM_ARGS='-SHELO -Smail_host -SSender -SList-ID'/;" \
|
||||
-e "s/DCCIFD_ARGS=\$/DCCIFD_ARGS=\"\$DCCM_ARGS\"/;" \
|
||||
-e 's/DCCIFD_ENABLE=off/DCCIFD_ENABLE=on/' \
|
||||
-e 's/DBCLEAN_LOGDAYS=14/DBCLEAN_LOGDAYS=1/' \
|
||||
-i "${ED}/${dcc_homedir}/dcc_conf" || die
|
||||
|
||||
if use milter ; then
|
||||
# enable milter
|
||||
sed -i -e "s:^[\t #]*\(DCCM_ENABLE[\t ]*=[\t ]*\).*:\1on:g" \
|
||||
"${ED}/${dcc_homedir}"/dcc_conf || die
|
||||
fi
|
||||
|
||||
# provide cronjob
|
||||
mv "${ED}"/usr/sbin/cron-dccd "${ED}"/etc/cron.daily/dccd || die "mv failed"
|
||||
|
||||
# clean up
|
||||
mv "${ED}"/usr/sbin/logger "${ED}"/usr/sbin/logger-dcc || die "mv failed"
|
||||
|
||||
if ! use rrdtool; then
|
||||
# remove rrdtool interface scripts
|
||||
rm "${ED}"/usr/sbin/dcc-stats-{collect,graph,init} || die "Failed to clean up rrdtool scripts"
|
||||
fi
|
||||
|
||||
# clean up
|
||||
rm "${ED}"/usr/sbin/{rcDCC,updatedcc} || die
|
||||
|
||||
# place configuration files into /etc instead of /var/dcc
|
||||
moveconf dcc_conf flod grey_flod grey_whitelist ids map map.txt whiteclnt whitecommon whitelist
|
||||
|
||||
newinitd "${FILESDIR}"/dcc.initd-1.3.154 dcc
|
||||
newconfd "${FILESDIR}"/dcc.confd dcc
|
||||
|
||||
rmdir "${ED}"/"${dcc_homedir}"/log || die
|
||||
|
||||
dodoc CHANGES
|
||||
doman *.{0,8}
|
||||
|
||||
systemd_dounit "${FILESDIR}/dccifd.service"
|
||||
}
|
21
mail-filter/dcc/files/dcc-1.3.158-c2x.patch
Normal file
21
mail-filter/dcc/files/dcc-1.3.158-c2x.patch
Normal file
@ -0,0 +1,21 @@
|
||||
This is the only K&R-style functions in the source, incompatible with C2x.
|
||||
--- a/dcclib/inet_ntop.c
|
||||
+++ b/dcclib/inet_ntop.c
|
||||
@@ -88,7 +88,3 @@
|
||||
*/
|
||||
-static const char *
|
||||
-inet_ntop4(src, dst, size)
|
||||
- const u_char *src;
|
||||
- char *dst;
|
||||
- size_t size;
|
||||
+static const char *inet_ntop4(const u_char *src, char *dst, size_t size)
|
||||
{
|
||||
@@ -115,7 +111,3 @@
|
||||
*/
|
||||
-static const char *
|
||||
-inet_ntop6(src, dst, size)
|
||||
- const u_char *src;
|
||||
- char *dst;
|
||||
- size_t size;
|
||||
+static const char *inet_ntop6(const u_char *src, char *dst, size_t size)
|
||||
{
|
30
mail-filter/dcc/files/dcc-1.3.158-clang16.patch
Normal file
30
mail-filter/dcc/files/dcc-1.3.158-clang16.patch
Normal file
@ -0,0 +1,30 @@
|
||||
configure.ac is missing, so need to edit this manually
|
||||
|
||||
https://bugs.gentoo.org/870646
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -796,3 +796,3 @@
|
||||
|
||||
-main(){return(0);}
|
||||
+int main(void){return(0);}
|
||||
EOF
|
||||
@@ -1100,3 +1100,3 @@
|
||||
#include "confdefs.h"
|
||||
-main()
|
||||
+int main(void)
|
||||
{exit(sizeof(void*)==8 ? 0 : sizeof(void*));}
|
||||
@@ -1463,3 +1463,3 @@
|
||||
#include <sys/types.h>
|
||||
-main()
|
||||
+int main(void)
|
||||
{
|
||||
@@ -3330,3 +3330,3 @@
|
||||
#define min(a,b) ((a) < (b) ? (a) : (b))
|
||||
-main()
|
||||
+int main(void)
|
||||
{
|
||||
@@ -3596,3 +3596,3 @@
|
||||
#include "include/dcc_paths.h"
|
||||
-main()
|
||||
+int main(void)
|
||||
{
|
14
mail-filter/dcc/files/dcc.confd
Normal file
14
mail-filter/dcc/files/dcc.confd
Normal file
@ -0,0 +1,14 @@
|
||||
# Config file for /etc/init.d/dcc
|
||||
|
||||
# Start server or DCC daemon
|
||||
START_DCC_DCCD="yes"
|
||||
|
||||
# Start DCC greylisting
|
||||
START_DCC_GREY="yes"
|
||||
|
||||
# Start milter interface
|
||||
START_DCC_DCCM="yes"
|
||||
|
||||
# Start general Perl and MTA interface
|
||||
# and Postfix before-queue filter
|
||||
START_DCC_DCCIF="yes"
|
102
mail-filter/dcc/files/dcc.initd-1.3.154
Normal file
102
mail-filter/dcc/files/dcc.initd-1.3.154
Normal file
@ -0,0 +1,102 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
use logger
|
||||
need net
|
||||
before mta
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
if [ ! -f "/etc/dcc/dcc_conf" ]; then
|
||||
eerror "You need a DCC configuration in /etc/dcc/dcc_conf"
|
||||
return 1
|
||||
fi
|
||||
for i in DCCD_ENABLE GREY_ENABLE DCCM_ENABLE DCCM_ARGS DCCIFD_ENABLE DCC_LIBEXEC DCC_RUNDIR \
|
||||
SOCKET_USER SOCKET_GROUP SOCKET_MODE; do
|
||||
read -r ${i} <<-EOF
|
||||
$( grep ^[[:space:]]*${i} /etc/dcc/dcc_conf | sed s/.*=// )
|
||||
EOF
|
||||
done
|
||||
DCC_RUNDIR="${DCC_RUNDIR:-/var/run/dcc}"
|
||||
if [ ! -d "${DCC_RUNDIR}" ]; then
|
||||
checkpath -q -d -o root:root -m 0755 "${DCC_RUNDIR}" || return 1
|
||||
fi
|
||||
}
|
||||
|
||||
start() {
|
||||
checkconfig || return 1
|
||||
local atleastone="${DCCD_ENABLE}${GREY_ENABLE}${DCCM_ENABLE}${DCCIFD_ENABLE}"
|
||||
atleastone=$( echo ${atleastone} | tr -d 'off' )
|
||||
if [ -z "${atleastone}" ]; then
|
||||
eend 1 "At least one service should be 'on' in /etc/dcc/dcc_conf"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ "${DCCD_ENABLE}" = "on" ] && [ -x "${DCC_LIBEXEC}/start-dccd" ]; then
|
||||
ebegin "Starting dccd"
|
||||
${DCC_LIBEXEC}/start-dccd >/dev/null 2>&1
|
||||
eend ${?}
|
||||
fi
|
||||
|
||||
if [ "${GREY_ENABLE}" = "on" ] && [ -x "${DCC_LIBEXEC}/start-grey" ]; then
|
||||
ebegin "Starting grey"
|
||||
${DCC_LIBEXEC}/start-grey >/dev/null 2>&1
|
||||
eend ${?}
|
||||
fi
|
||||
|
||||
if [ "${DCCM_ENABLE}" = "on" ] && [ -x "${DCC_LIBEXEC}/start-dccm" ]; then
|
||||
ebegin "Starting dccm"
|
||||
${DCC_LIBEXEC}/start-dccm >/dev/null 2>&1
|
||||
eend ${?}
|
||||
if !(echo ${DCCM_ARGS}|grep -q "^\-p\|[[:space:]]\-p"); then
|
||||
local dccmtimeout=0
|
||||
while [ ${dccmtimeout} -le 20 ] ; do
|
||||
if [ -S "${DCC_RUNDIR}/dccm" ] || [ -r "${DCC_RUNDIR}/dccm" ]; then
|
||||
break
|
||||
else
|
||||
sleep 1
|
||||
dccmtimeout=$(($dccmtimeout + 1))
|
||||
fi
|
||||
done
|
||||
chown ${SOCKET_USER:-milter}:${SOCKET_GROUP:-milter} ${DCC_RUNDIR}/dccm 1>/dev/null 2>&1
|
||||
chmod ${SOCKET_MODE:-664} ${DCC_RUNDIR}/dccm 1>/dev/null 2>&1
|
||||
fi
|
||||
sed -i -e "s:^\-::" ${DCC_RUNDIR}/dccm.pid 1>/dev/null 2>&1 || return 1
|
||||
fi
|
||||
|
||||
if [ "${DCCIFD_ENABLE}" = "on" ] && [ -x "${DCC_LIBEXEC}/start-dccifd" ]; then
|
||||
ebegin "Starting dccif"
|
||||
${DCC_LIBEXEC}/start-dccifd >/dev/null 2>&1
|
||||
eend ${?}
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
checkconfig || return 1
|
||||
|
||||
if [ -r "${DCC_RUNDIR}/dccifd.pid" ]; then
|
||||
ebegin "Stopping dccif"
|
||||
kill -s 15 $(cat ${DCC_RUNDIR}/dccifd.pid) 2>/dev/null
|
||||
eend ${?}
|
||||
fi
|
||||
|
||||
if [ -r "${DCC_RUNDIR}/dccm.pid" ]; then
|
||||
ebegin "Stopping dccm"
|
||||
kill -s 15 $(cat ${DCC_RUNDIR}/dccm.pid) 2>/dev/null
|
||||
eend ${?}
|
||||
fi
|
||||
|
||||
if (pidof dccd >/dev/null 2>&1) && [ -x "${DCC_LIBEXEC}/stop-dccd" ]; then
|
||||
ebegin "Stopping dccd"
|
||||
${DCC_LIBEXEC}/stop-dccd >/dev/null 2>&1
|
||||
eend ${?}
|
||||
fi
|
||||
|
||||
if (pidof dccd >/dev/null 2>&1) && [ -x "${DCC_LIBEXEC}/stop-dccd" ]; then
|
||||
ebegin "Stopping grey"
|
||||
${DCC_LIBEXEC}/stop-dccd -G >/dev/null 2>&1
|
||||
eend ${?}
|
||||
fi
|
||||
}
|
34
mail-filter/dcc/files/dccifd.service
Normal file
34
mail-filter/dcc/files/dccifd.service
Normal file
@ -0,0 +1,34 @@
|
||||
[Unit]
|
||||
Description=DCC (Distributed Checksum Clearinghouses) interface daemon
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PermissionsStartOnly=true
|
||||
RuntimeDirectory=dcc
|
||||
ConfigurationDirectory=dcc
|
||||
LogsDirectory=dcc
|
||||
StateDirectory=dcc
|
||||
ExecStart=/usr/sbin/dccifd
|
||||
|
||||
#DCC writes pid file with "-" at the beginning which confuses systemd
|
||||
#PIDFile=/run/dcc/dccifd.pid
|
||||
|
||||
# Hardening
|
||||
ProtectSystem=strict
|
||||
PrivateDevices=true
|
||||
ProtectKernelModules=true
|
||||
ProtectKernelLogs=true
|
||||
RestrictRealtime=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectControlGroups=true
|
||||
ProtectHome=true
|
||||
ProtectHostname=true
|
||||
ProtectClock=true
|
||||
PrivateTmp=true
|
||||
SystemCallArchitectures=native
|
||||
MemoryDenyWriteExecute=true
|
||||
NoNewPrivileges=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
15
mail-filter/dcc/metadata.xml
Normal file
15
mail-filter/dcc/metadata.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>robbat2@gentoo.org</email>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>candrews@gentoo.org</email>
|
||||
<name>Craig Andrews</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="rrdtool">Enable <pkg>net-analyzer/rrdtool</pkg> interface
|
||||
scripts</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
@ -1 +0,0 @@
|
||||
EBUILD pyzor-9999.ebuild 1887 BLAKE2B 783cd9f50107b9dc873d66ddd9957ed46783e0b1f4ce5cb99f728761674341fd9e53cd734036a058096ae3aa227f2e91a2f554d596cf193ff795b28c3b6775b8 SHA512 63cc579800864ea77040be5ff5c9253ea7de1e5e1162b3ffb15c1081190fcc14258579a5b5b9945f820acab8ec0c684bba9b6ef0e859dc420a398c90887abb6c
|
@ -1,69 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_6 python3_7 python3_8 )
|
||||
inherit distutils-r1 git-r3
|
||||
|
||||
DESCRIPTION="A distributed, collaborative spam detection and filtering network"
|
||||
HOMEPAGE="https://github.com/SpamExperts/pyzor"
|
||||
EGIT_REPO_URI="https://github.com/SpamExperts/pyzor"
|
||||
EGIT_BRANCH="master"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE="doc gdbm gevent pyzord redis test"
|
||||
# The test suite is py2-only
|
||||
RESTRICT="test"
|
||||
|
||||
# The mysql-python library is always required for the MySQL engine. We
|
||||
# depend on it conditionally here because otherwise repoman will balk at
|
||||
# the potential conflict between PYTHON_TARGETS and USE=mysql. But as a
|
||||
# result, if you try to use the MySQL engine with python-3.x, it just
|
||||
# won't work because you'll be missing the library.
|
||||
RDEPEND="
|
||||
pyzord? (
|
||||
gdbm? ( $(python_gen_impl_dep 'gdbm') )
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
|
||||
gevent? ( dev-python/gevent[${PYTHON_USEDEP}] )
|
||||
)"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( ${RDEPEND} )"
|
||||
|
||||
# TODO: maybe upstream would support skipping tests for which the
|
||||
# dependencies are missing?
|
||||
REQUIRED_USE="pyzord? ( || ( gdbm redis ) )
|
||||
test? ( gdbm redis )"
|
||||
|
||||
#PATCHES=(
|
||||
# "${FILESDIR}/65.patch"
|
||||
#)
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH=. "${PYTHON}" ./tests/unit/__init__.py
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( docs/.build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
if use pyzord; then
|
||||
dodir /usr/sbin
|
||||
mv "${D}"usr/bin/pyzord* "${ED}usr/sbin" \
|
||||
|| die "failed to relocate pyzord"
|
||||
else
|
||||
rm "${D}"usr/bin/pyzord* || die "failed to remove pyzord"
|
||||
fi
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user