]> git.ipfire.org Git - people/ms/dma.git/commitdiff
Add symlink for sendmail which is expected by many packages
authorSimon Schubert <2@0x2c.org>
Tue, 15 Nov 2011 21:53:43 +0000 (22:53 +0100)
committerSimon Schubert <2@0x2c.org>
Tue, 15 Nov 2011 21:58:11 +0000 (22:58 +0100)
Bug #833485

Makefile
debian/rules

index 0ae0db41a49936c0acd019a8462f9625ce3b1e8b..d9542bd34c26ec21899779f8375c1735dc12d247 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -29,9 +29,11 @@ MAN?=                ${PREFIX}/share/man
 VAR?=          /var
 DMASPOOL?=     ${VAR}/spool/dma
 VARMAIL?=      ${VAR}/mail
+SYMLINK?=      -s # or empty to create hard link
 
 YACC?=         yacc
 LEX?=          lex
+LN?=           ln
 
 OBJS=  aliases_parse.o aliases_scan.o base64.o conf.o crypto.o
 OBJS+= dma.o dns.o local.o mail.o net.o spool.o util.o
@@ -52,6 +54,9 @@ install: all
        ${INSTALL} -d -m 2775 -o root -g mail ${DESTDIR}${DMASPOOL}
        ${INSTALL} -d -m 2775 -o root -g mail ${DESTDIR}${VARMAIL}
 
+sendmail-link:
+       cd ${DESTDIR}${SBIN} && ${LN} ${SYMLINK} dma sendmail
+
 permissions:
        -${CHGRP} mail ${DESTDIR}${VARMAIL}/*
        -${CHMOD} g+w ${DESTDIR}${VARMAIL}/*
index 76fc7020e9267f8baceed3ed65644700846f40be..9d4084eb6e2c3f43bed00acffb0ce606f31f0dfe 100755 (executable)
@@ -36,7 +36,7 @@ override_dh_auto_clean:
        $(MAKE) -C $(DDIR)/migrate clean
 
 override_dh_auto_install:
-       $(MAKE) -f Makefile ${BUILDDEFS} install
+       $(MAKE) -f Makefile ${BUILDDEFS} install sendmail-link
        install -o root -g mail -m 644 dma.conf $D/etc/dma
        install -o root -g mail -m 640 auth.conf $D/etc/dma