new appliance: ASSP

This commit is contained in:
Jörg Deckert 2022-08-05 19:00:35 +02:00
parent 0479880a81
commit 1ad5d5d3e5
6 changed files with 85 additions and 0 deletions

26
assp/Makefile Normal file
View File

@ -0,0 +1,26 @@
install_assp = /opt/assp
assp.service = $(CHROOT)/lib/systemd/system/assp.service
ASSP_SNAPSHOT ?= r325
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)

2
assp/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

13
assp/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

View File

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

14
assp/package.use Normal file
View File

@ -0,0 +1,14 @@
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
app-text/poppler png tiff
x11-libs/libxkbcommon X
dev-libs/libpcre2 pcre16
media-libs/libglvnd X
media-libs/mesa -llvm
media-libs/harfbuzz -cairo

29
assp/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