]> git.proxmox.com Git - pmg-api.git/blobdiff - Makefile
bump version to 5.1-3
[pmg-api.git] / Makefile
index a813b688c8a8a9808122dac3f045d2b36f66ad04..0fde1ca08bb3208afd5476530d22470bfa22072c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-PACKAGE=proxmox-mailgateway
-PKGVER=5.0
-PKGREL=5
+PACKAGE=pmg-api
+PKGVER=5.1
+PKGREL=3
 
 # this requires package pmg-doc-generator
 export NOVIEW=1
@@ -18,14 +18,14 @@ BASHCOMPLDIR=${DESTDIR}/usr/share/bash-completion/completions/
 REPOID=`./repoid.pl .git`
 
 SERVICES = pmgdaemon pmgproxy pmgtunnel pmgmirror
-CLITOOLS = pmgdb pmgconfig pmgperf pmgcm pmgqm
-CLISCRIPTS = pmg-smtp-filter pmgsh pmgpolicy
+CLITOOLS = pmgdb pmgconfig pmgperf pmgcm pmgqm pmgreport pmgversion pmgupgrade pmgsubscription pmgbackup
+CLISCRIPTS = pmg-smtp-filter pmgsh pmgpolicy pmgbanner
 CRONSCRIPTS = pmg-hourly pmg-daily
 
 CLI_CLASSES = $(addprefix PMG/CLI/, $(addsuffix .pm, ${CLITOOLS}))
 SERVICE_CLASSES = $(addprefix PMG/Service/, $(addsuffix .pm, ${SERVICES}))
 SERVICE_UNITS = $(addprefix debian/, $(addsuffix .service, ${SERVICES}))
-TIMER_UNITS = $(addprefix debian/, $(addsuffix .timer, ${CRONSCRIPTS} pmgspamreport))
+TIMER_UNITS = $(addprefix debian/, $(addsuffix .timer, ${CRONSCRIPTS} pmgspamreport pmgreport))
 
 CLI_BINARIES = $(addprefix bin/, ${CLITOOLS} ${CLISCRIPTS} ${CRONSCRIPTS})
 CLI_MANS = $(addsuffix .1, ${CLITOOLS}) pmgsh.1
@@ -35,6 +35,8 @@ SERVICE_MANS = $(addsuffix .8, ${SERVICES}) pmg-smtp-filter.8 pmgpolicy.8
 CONF_MANS= pmg.conf.5 cluster.conf.5
 
 TEMPLATES =                            \
+       fetchmailrc.tt                  \
+       pmgreport.tt                    \
        spamreport-verbose.tt           \
        spamreport-short.tt             \
        main.cf.in                      \
@@ -57,6 +59,7 @@ LIBSOURCES =                          \
        PMG/pmgcfg.pm                   \
        PMG/RESTEnvironment.pm          \
        PMG/Utils.pm                    \
+       PMG/HTMLMail.pm                 \
        PMG/ModGroup.pm                 \
        PMG/SMTPPrinter.pm              \
        PMG/Config.pm                   \
@@ -70,13 +73,16 @@ LIBSOURCES =                                \
        PMG/Postfix.pm                  \
        PMG/SMTP.pm                     \
        PMG/Unpack.pm                   \
+       PMG/Backup.pm                   \
        PMG/RuleCache.pm                \
        PMG/Statistic.pm                \
        PMG/UserConfig.pm               \
+       PMG/Fetchmail.pm                \
        PMG/LDAPConfig.pm               \
        PMG/LDAPSet.pm                  \
        PMG/LDAPCache.pm                \
        PMG/DBTools.pm                  \
+       PMG/Quarantine.pm               \
        PMG/RuleDB/Group.pm             \
        PMG/RuleDB/Rule.pm              \
        PMG/RuleDB/Object.pm            \
@@ -111,19 +117,29 @@ LIBSOURCES =                              \
        PMG/RuleDB.pm                   \
        ${CLI_CLASSES}                  \
        ${SERVICE_CLASSES}              \
+       PMG/API2/Subscription.pm        \
+       PMG/API2/APT.pm                 \
        PMG/API2/Network.pm             \
        PMG/API2/Services.pm            \
        PMG/API2/Tasks.pm               \
        PMG/API2/LDAP.pm                \
+       PMG/API2/DestinationTLSPolicy.pm\
        PMG/API2/Domains.pm             \
+       PMG/API2/Fetchmail.pm           \
        PMG/API2/Users.pm               \
        PMG/API2/Transport.pm           \
        PMG/API2/MyNetworks.pm          \
+       PMG/API2/MimeTypes.pm           \
        PMG/API2/Config.pm              \
        PMG/API2/Cluster.pm             \
        PMG/API2/ClamAV.pm              \
+       PMG/API2/SpamAssassin.pm        \
+       PMG/API2/Statistics.pm          \
+       PMG/API2/MailTracker.pm         \
+       PMG/API2/Backup.pm              \
        PMG/API2/Nodes.pm               \
        PMG/API2/Postfix.pm             \
+       PMG/API2/Quarantine.pm          \
        PMG/API2/AccessControl.pm       \
        PMG/API2/ObjectGroupHelpers.pm  \
        PMG/API2/Rules.pm               \
@@ -135,7 +151,7 @@ LIBSOURCES =                                \
        PMG/API2/Action.pm              \
        PMG/API2.pm
 
-SOURCES = ${LIBSOURCES} ${CLI_BINARIES} ${TEMPLATES_FILES} ${CONF_MANS} ${CLI_MANS} ${SERVICE_MANS} ${SERVICE_UNITS} ${TIMER_UNITS}
+SOURCES = ${LIBSOURCES} ${CLI_BINARIES} ${TEMPLATES_FILES} ${CONF_MANS} ${CLI_MANS} ${SERVICE_MANS} ${SERVICE_UNITS} ${TIMER_UNITS} pmg-sources.list pmg-apt.conf pmg-initramfs.conf
 
 all: ${SOURCES}
 
@@ -168,6 +184,8 @@ install: ${SOURCES} $(addsuffix .service-bash-completion, ${SERVICES}) $(addsuff
        install -d -m 0755 ${DOCDIR}
        # TODO: is there a better location ?
        install -m 0644 favicon.ico ${DOCDIR}
+       install -D -m 0644 pmg-apt.conf ${DESTDIR}/etc/apt/apt.conf.d/75pmgconf
+       install -D -m 0644 pmg-sources.list ${DESTDIR}/etc/apt/sources.list.d/pmg-enterprise.list
        for i in ${LIBSOURCES}; do install -D -m 0644 $$i ${PERL5DIR}/$$i; done
        for i in ${SERVICES}; do install -D -m 0644 PMG/Service/$$i.pm ${PERL5DIR}/PMG/Service/$$i.pm; done
        for i in ${SERVICES}; do install -m 0755 bin/$$i ${DESTDIR}/usr/bin; done
@@ -183,6 +201,7 @@ install: ${SOURCES} $(addsuffix .service-bash-completion, ${SERVICES}) $(addsuff
        for i in ${CRONSCRIPTS}; do install -D -m 0755 bin/$$i ${DESTDIR}/usr/lib/pmg/bin/$$i; done
        install -d -m 0755 ${DESTDIR}/lib/systemd/system
        for i in ${TIMER_UNITS}; do install -m 0644 $$i ${DESTDIR}/lib/systemd/system/; done
+       install -D -m 0644 pmg-initramfs.conf ${DESTDIR}/etc/initramfs-tools/conf.d/pmg-initramfs.conf
 
 .PHONY: upload
 upload: ${DEB}