First release

This commit is contained in:
Jörg Deckert 2023-03-08 07:03:52 +01:00
parent c9b02793d7
commit c28183de20
7 changed files with 88 additions and 1 deletions

View File

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) <year> <copyright holders> Copyright (c) 2023 Unitas Network GmbH
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

26
Makefile Normal file
View File

@ -0,0 +1,26 @@
install_assp = /opt/assp
assp.service = $(CHROOT)/lib/systemd/system/assp.service
ASSP_SNAPSHOT ?= r362
ASSP_MOD_INST_VER ?= 2.10
ASSP_FC_VER ?= 1.05
ASSP_ZIP = assp-svn-$(ASSP_SNAPSHOT).zip
ASSP_URL = https://sourceforge.net/code-snapshots/svn/a/as/assp/svn/$(ASSP_ZIP)
$(CHROOT)$(install_assp):
## RUN test -f /var/cache/distfiles/$(ASSP_ZIP) || \
## RUN wget $(ASSP_URL) -O /var/cache/distfiles/$(ASSP_ZIP)
RUN sh -c '(echo y;echo manual;echo o conf prerequisites_policy follow;echo o conf commit)|cpan'
RUN sh -c 'cd /opt && unzip /var/cache/distfiles/$(ASSP_ZIP) && mv /opt/assp-svn-$(ASSP_SNAPSHOT)/assp2/trunk $(install_assp) && rm -rf /opt/assp-svn-$(ASSP_SNAPSHOT)'
echo "AsADaemon:=1" > $(CHROOT)$(install_assp)/assp.cfg
RUN sh -c 'mkdir -p /tmp/mod_inst && cd /tmp/mod_inst && unzip $(install_assp)/mod_inst.pl.$(ASSP_MOD_INST_VER).zip && perl mod_inst.pl && perl mod_inst_ocr.pl'
RUN sh -c 'cd $(install_assp) && unzip images/images.zip && rm images/images.zip'
RUN sh -c 'cd $(install_assp) && unzip filecommander/$(ASSP_FC_VER).ZIP && rm -rf filecommander/$(ASSP_FC_VER).ZIP && mv $(ASSP_FC_VER)/images/* images/ && mv $(ASSP_FC_VER)/lib/* lib/ && rm -rf $(ASSP_FC_VER)'
rm -rf $(CHROOT)/root/.cpan/build $(CHROOT)/root/.cpan/sources
$(assp.service): assp/assp.service
cp $< $@
preinstall:
postinstall: $(CHROOT)$(install_assp) $(assp.service)

13
assp/assp.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=AntiSpam SMTP Proxy
After=network.target clamd.service
[Service]
Type=forking
WorkingDirectory=/opt/assp
ExecStart=/usr/bin/perl /opt/assp/assp.pl /opt/assp/
RestartSec=60
Restart=always
[Install]
WantedBy=multi-user.target

1
package.accept_keywords Normal file
View File

@ -0,0 +1 @@
app-antivirus/clamav-unofficial-sigs

16
package.use Normal file
View File

@ -0,0 +1,16 @@
dev-lang/perl berkdb ithreads
mail-mta/postfix cdb ldap mysql
app-text/tesseract jpeg png tiff webp
media-libs/leptonica tiff webp jpeg png
media-gfx/imagemagick jpeg perl png tiff webp wmf
media-libs/gd jpeg png fontconfig
x11-libs/gdk-pixbuf -introspection
dev-java/openjdk-bin headless-awt
virtual/jdk headless-awt
app-text/poppler png tiff
x11-libs/libxkbcommon X
dev-libs/boost context
dev-libs/libpcre2 pcre16
media-libs/libglvnd X
media-libs/mesa -llvm
media-libs/harfbuzz -cairo

2
va-assp.cfg Normal file
View File

@ -0,0 +1,2 @@
REPO_NAMES += unitas-mail
REPO_URI_unitas-mail = https://git.unitas-network.de/Gentoo/unitas-mail.git

29
world Normal file
View File

@ -0,0 +1,29 @@
app-antivirus/clamav
app-antivirus/clamav-unofficial-sigs
app-arch/arj
app-arch/libarchive
app-arch/p7zip
app-arch/unrar
app-arch/unzip
app-text/pdftk
app-text/poppler
app-text/tesseract
app-text/xpdf
dev-db/mariadb
dev-lang/perl
dev-perl/IO-Socket-SSL
mail-filter/dcc
mail-mta/postfix
media-gfx/imagemagick
net-analyzer/net-snmp
net-analyzer/tcpdump
net-analyzer/traceroute
net-dns/bind-tools
net-dns/pdns-recursor
net-misc/netkit-telnetd
net-misc/ntp
net-nds/openldap
sys-apps/dmidecode
sys-block/parted
sys-libs/db
virtual/perl-CPAN