first commit

This commit is contained in:
Jörg Deckert 2020-06-15 19:41:30 +02:00
parent 3f70783d69
commit 871afb027b
12 changed files with 327 additions and 1 deletions

View File

@ -1,4 +1,20 @@
## unitas-mail ## Gentoo Overlay unitas-mail
Gentoo repository for mail tasks Gentoo repository for mail tasks
Das ist ein Gentoo Portage Overlay der Unitas Network GmbH.
Dieses enthält überwiegend Ebuilds für unsere interne Nutzung,
es wird keinerlei Garantie für die Fehlerfreiheit übernommen.
Nutzung
-------
Die Installation erfolgt z.B. mittels:
```
# emerge -av layman
# cd /etc/layman/overlays
# wget https://dev.unitas-network.de/raw/Gentoo/unitas-mail.git/master/unitas-mail-overlay.xml
# layman -L
# layman -a unitas-mail
```

View File

@ -0,0 +1,4 @@
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

View File

@ -0,0 +1,67 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit systemd
DESCRIPTION="Download and install third-party clamav signatures"
HOMEPAGE="https://github.com/extremeshok/${PN}"
SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
# We need its user/group.
DEPEND="app-antivirus/clamav"
# The script relies on either net-misc/socat, or Perl's
# IO::Socket::UNIX. We already depend on Perl, and Gentoo's Perl ships
# with IO::Socket::UNIX, so we can leave out net-misc/socat here.
RDEPEND="${DEPEND}
app-crypt/gnupg
dev-lang/perl
net-dns/bind-tools
|| ( net-misc/wget net-misc/curl )"
src_install() {
dosbin "${PN}.sh"
# 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}"
insinto /etc/logrotate.d
doins "${FILESDIR}/${PN}.logrotate"
insinto "/etc/${PN}"
doins config/{master,user}.conf
newins config/os.gentoo.conf os.conf
doman "${FILESDIR}/${PN}.8"
dodoc 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"
systemd_dounit "systemd/clamav-unofficial-sigs.timer"
systemd_dounit "systemd/clamd.scan.service"
}
pkg_postinst() {
elog ''
elog "You will need to select databases in /etc/${PN}/master.conf."
elog "For details, please see the ${PN}(8) manual page."
elog ''
elog 'An up-to-date description of the available Sanesecurity'
elog 'databases is available at,'
elog ''
elog ' http://sanesecurity.com/usage/signatures/'
elog ''
ewarn 'The configuration file has moved in the 5.x version!'
ewarn "You should migrate your config from /etc/${PN}.conf to"
ewarn "/etc/${PN}/master.conf"
ewarn ''
}

View File

@ -0,0 +1,75 @@
.\" 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

View File

@ -0,0 +1,4 @@
/var/log/clamav-unofficial-sigs/clamav-unofficial-sigs.log {
create 0640 clamav clamav
missingok
}

View File

@ -0,0 +1,4 @@
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

View File

@ -0,0 +1,6 @@
# /etc/conf.d/sogod: config file for /etc/init.d/sogod
SOGOD_WORKERS=3
# Additional options for SOGo
SOGOD_OPTS=""

View File

@ -0,0 +1,32 @@
#!/sbin/openrc-run
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
SOGOD_PID=/run/sogo/sogod.pid
depend() {
need net
need memcached
after postgresql mysql
after slapd
after mta
}
start() {
checkpath -q -d -m 0755 -o sogo:sogo $(dirname "${SOGOD_PID}")
ebegin "Starting SOGo service"
start-stop-daemon --start --quiet \
--user sogo --exec /usr/sbin/sogod \
-- -WOWorkersCount ${SOGOD_WORKERS} \
-WOLogFile /var/log/sogo/sogod.log \
-WOPidFile "${SOGOD_PID}" \
"${SOGOD_OPTS}"
eend ${?}
}
stop() {
ebegin "Stopping SOGo service"
start-stop-daemon --stop \
--pidfile "${SOGOD_PID}"
eend ${?}
}

View File

@ -0,0 +1,106 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
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"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="activesync gnutls libressl +ssl"
RDEPEND="
acct-user/sogo
dev-libs/libmemcached
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:= )
)
"
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 \
|| die
if use activesync; then
sed -e 's/Tests\/Unit/ActiveSync &/g' \
-i GNUmakefile || die
fi
default
}
src_configure() {
local ssl_provider
if use ssl ; then
if use gnutls ; then
ssl_provider=gnutls
else
ssl_provider=ssl
fi
else
ssl_provider=none
fi
egnustep_env
./configure \
--disable-strip \
--prefix=/usr \
--with-ssl="${ssl_provider}" \
$(use_enable debug) \
|| die "configure failed"
}
src_install() {
gnustep-base_src_install
newconfd "${FILESDIR}"/sogod.confd sogod
newinitd "${FILESDIR}"/sogod.initd sogod
insinto /etc/logrotate.d
newins Scripts/logrotate sogo
newdoc Apache/SOGo.conf SOGo-Apache.conf
insinto /etc/sogo
doins Scripts/sogo.conf
insinto /etc/cron.d
newins Scripts/sogo.cron sogo
keepdir /var/log/sogo
fowners sogo:sogo /var/log/sogo
fowners -R root:sogo /etc/sogo
}
pkg_postinst() {
gnustep-base_pkg_postinst
elog "SOGo documentation is available online at:"
elog "http://www.sogo.nu/downloads/documentation.html"
elog
elog "Apache sample configuration file is available in:"
elog "/usr/share/doc/${PF}"
if use activesync; then
ewarn "In order to use the SOGo ActiveSync support code in production environments,"
ewarn "you need to get a proper usage license. Check the documentation for details."
fi
}

1
metadata/layout.conf Normal file
View File

@ -0,0 +1 @@
masters = gentoo

1
profiles/repo_name Normal file
View File

@ -0,0 +1 @@
unitas-mail

10
unitas-mail-overlay.xml Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<layman>
<overlay type="git" src="http://dev.unitas-network.de/r/Gentoo/unitas-mail.git" name="unitas-mail" status="unofficial" contact="admin@unitas-network.de">
<description>Gentoo Portage Overlay for mail tasks.
It contains ebuilds mainly for internal use without any
warranty.</description>
<link>https://www.unitas-network.de</link>
</overlay>
</layman>