From c28183de20ebce5711042148ad99603955cea8bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Deckert?= Date: Wed, 8 Mar 2023 07:03:52 +0100 Subject: [PATCH] First release --- LICENSE | 2 +- Makefile | 26 ++++++++++++++++++++++++++ assp/assp.service | 13 +++++++++++++ package.accept_keywords | 1 + package.use | 16 ++++++++++++++++ va-assp.cfg | 2 ++ world | 29 +++++++++++++++++++++++++++++ 7 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 Makefile create mode 100644 assp/assp.service create mode 100644 package.accept_keywords create mode 100644 package.use create mode 100644 va-assp.cfg create mode 100644 world diff --git a/LICENSE b/LICENSE index 2071b23..0d13c41 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) +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: diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f3d563b --- /dev/null +++ b/Makefile @@ -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) diff --git a/assp/assp.service b/assp/assp.service new file mode 100644 index 0000000..84ab25d --- /dev/null +++ b/assp/assp.service @@ -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 diff --git a/package.accept_keywords b/package.accept_keywords new file mode 100644 index 0000000..1b8ec75 --- /dev/null +++ b/package.accept_keywords @@ -0,0 +1 @@ +app-antivirus/clamav-unofficial-sigs diff --git a/package.use b/package.use new file mode 100644 index 0000000..6340737 --- /dev/null +++ b/package.use @@ -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 diff --git a/va-assp.cfg b/va-assp.cfg new file mode 100644 index 0000000..e2917b5 --- /dev/null +++ b/va-assp.cfg @@ -0,0 +1,2 @@ +REPO_NAMES += unitas-mail +REPO_URI_unitas-mail = https://git.unitas-network.de/Gentoo/unitas-mail.git diff --git a/world b/world new file mode 100644 index 0000000..a8da1ac --- /dev/null +++ b/world @@ -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