diff options
author | Carlo Strub <cs@FreeBSD.org> | 2014-06-12 19:41:00 +0000 |
---|---|---|
committer | Carlo Strub <cs@FreeBSD.org> | 2014-06-12 19:41:00 +0000 |
commit | b9a640d15d1c6cef00388f81e17b19ac0de03719 (patch) | |
tree | ea68057dede44b0e44aa35cb689b6a2a431ec772 /mail/mixmaster | |
parent | 3d81fef84c6141ec33dfd53e8e19e04fbd3cfd53 (diff) | |
download | ports-b9a640d15d1c6cef00388f81e17b19ac0de03719.tar.gz ports-b9a640d15d1c6cef00388f81e17b19ac0de03719.zip |
Notes
Diffstat (limited to 'mail/mixmaster')
-rw-r--r-- | mail/mixmaster/Makefile | 74 | ||||
-rw-r--r-- | mail/mixmaster/distinfo | 8 | ||||
-rw-r--r-- | mail/mixmaster/files/Makefile.in | 76 | ||||
-rw-r--r-- | mail/mixmaster/files/patch-Mix-Src-Makefile.in | 47 | ||||
-rw-r--r-- | mail/mixmaster/files/patch-Mix-Src-config.h | 16 | ||||
-rw-r--r-- | mail/mixmaster/files/patch-Mix-Src-mix.c | 11 | ||||
-rw-r--r-- | mail/mixmaster/files/patch-Mix-conf-mix.cfg | 8 | ||||
-rw-r--r-- | mail/mixmaster/files/patch-aa | 11 | ||||
-rw-r--r-- | mail/mixmaster/files/patch-ab | 11 | ||||
-rw-r--r-- | mail/mixmaster/files/patch-ac | 13 | ||||
-rw-r--r-- | mail/mixmaster/files/patch-ad | 8 | ||||
-rw-r--r-- | mail/mixmaster/pkg-descr | 6 | ||||
-rw-r--r-- | mail/mixmaster/pkg-plist | 31 |
13 files changed, 140 insertions, 180 deletions
diff --git a/mail/mixmaster/Makefile b/mail/mixmaster/Makefile index 27c9d62fa464..61f1de20cbcd 100644 --- a/mail/mixmaster/Makefile +++ b/mail/mixmaster/Makefile @@ -1,54 +1,72 @@ # Created by: Meyer Wolfsheim # $FreeBSD$ +# PORTNAME= mixmaster -PORTVERSION= 2.9.1 -PORTREVISION= 2 +PORTVERSION= 3.0.2d CATEGORIES= mail security -MASTER_SITES= SF/${PORTNAME}/Mixmaster/${PORTVERSION} \ - ftp://ftp.erisiandiscord.de/pub/misc/ +MASTER_SITES= http://www.c-s.li/ports/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ mixmaster-update.pl.gz allpingers.txt.gz EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= cs@FreeBSD.org -COMMENT= A cryptographically secure anonymous remailer +COMMENT= Cryptographically secure anonymous remailer -LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre +LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre -USES= ncurses perl5 -USE_OPENSSL= yes -.if !exists(/usr/include/openssl/idea.h) -WITH_OPENSSL_PORT= yes -.endif +USES= perl5 +USE_NCURSES= yes + +BUILD_WRKSRC= ${WRKSRC}/Mix/Src -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/Src +PORTDOCS= README HISTORY +CONFIG_FILES= abuse.txt.in dest.blk mix.cfg news.hlp pubring.mix type1.hlp \ + adminkey.txt end.hlp mix.cfg.ex pgp.hlp rab.blk usage.txt.in \ + blocked.txt.in header.blk mix.hlp pgponly.hlp reply.txt.in \ + dest.alw intro.hlp mlist.txt pubring.asc rlist.txt \ + allpingers.txt -CFLAGS+= -DGLOBALMIXCONF="\"${SYSCONFDIR}/mixmaster/client.cfg\"" -DHOMEMIXDIR="\".Mix\"" -MAKE_ARGS= CC=${CC} +OPTIONS_DEFINE= DOCS +OPTIONS_DEFAULT=DOCS -MAN1= mixmaster.1 -WRKDIST= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -MIXMASTER_FILES= ${WRKDIST}/conf/* ${WRKDIST}/README ${WRKDIR}/allpingers.txt -MIXMASTER_SCRIPTS= ${WRKDIR}/mixmaster-update.pl +.include <bsd.port.options.mk> -NO_STAGE= yes .include <bsd.port.pre.mk> +.if ${OSVERSION} < 1000000 +BROKEN= Does not compile +.endif + post-patch: - ${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile - @${RM} ${WRKSRC}/../conf/mix.cfg.orig + @${RM} ${WRKSRC}/Mix/conf/mix.cfg.orig + @${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|' ${WRKSRC}/Mix/Src/config.h \ + ${WRKSRC}/Mix/Src/Makefile.in + ${CP} ${WRKSRC}/Mix/Src/Makefile.in ${WRKSRC}/Mix/Src/Makefile pre-install: ${GZCAT} ${DISTDIR}/mixmaster-update.pl.gz >${WRKDIR}/mixmaster-update.pl - ${GZCAT} ${DISTDIR}/allpingers.txt.gz >${WRKDIR}/allpingers.txt - ${REINPLACE_CMD} -e "s,/etc,${SYSCONFDIR},g" ${WRKDIR}/mixmaster-update.pl - ${MKDIR} ${PREFIX}/share/examples/mixmaster + ${GZCAT} ${DISTDIR}/allpingers.txt.gz >${WRKSRC}/Mix/conf/allpingers.txt + ${REINPLACE_CMD} -e "s|/etc/mixmaster|${ETCDIR}|g" ${WRKDIR}/mixmaster-update.pl + ${REINPLACE_CMD} -e "s|/usr/bin|${PREFIX}/bin|g" ${WRKDIR}/mixmaster-update.pl + ${MKDIR} ${ETCDIR} do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/mix ${PREFIX}/bin/mixmaster - ${INSTALL_SCRIPT} ${MIXMASTER_SCRIPTS} ${PREFIX}/bin/mixmaster-update.pl - ${INSTALL_DATA} ${MIXMASTER_FILES} ${PREFIX}/share/examples/mixmaster - ${INSTALL_MAN} ${WRKDIST}/mix.1 ${PREFIX}/man/man1/mixmaster.1 + ${INSTALL_PROGRAM} ${WRKSRC}/Mix/Src/mixmaster ${STAGEDIR}${PREFIX}/bin/mixmaster + ${INSTALL_PROGRAM} ${WRKSRC}/Mix/Src/mpgp ${STAGEDIR}${PREFIX}/bin/mpgp + ${INSTALL_PROGRAM} ${WRKSRC}/Mix/Src/remailer ${STAGEDIR}${PREFIX}/bin/remailer + ${INSTALL_SCRIPT} ${WRKDIR}/mixmaster-update.pl ${STAGEDIR}${PREFIX}/bin/mixmaster-update + ${INSTALL_MAN} ${WRKSRC}/Mix/mixmaster.1 ${STAGEDIR}${PREFIX}/man/man1/mixmaster.1 + ${INSTALL_MAN} ${WRKSRC}/Mix/mpgp.1 ${STAGEDIR}${PREFIX}/man/man1/mpgp.1 +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/Mix/,} ${STAGEDIR}${DOCSDIR}/ +.endif +.for FILE in ${CONFIG_FILES} + @${INSTALL_DATA} ${WRKSRC}/Mix/conf/${FILE} ${ETCDIR}/${FILE}.sample + @if [ ! -f ${ETCDIR}/${FILE} ]; then \ + ${CP} -p ${WRKSRC}/Mix/conf/${FILE} ${ETCDIR}/${FILE} ; \ + fi +.endfor .include <bsd.port.post.mk> diff --git a/mail/mixmaster/distinfo b/mail/mixmaster/distinfo index f20559a39ba9..c75f0aabb3ee 100644 --- a/mail/mixmaster/distinfo +++ b/mail/mixmaster/distinfo @@ -1,6 +1,6 @@ -SHA256 (mixmaster-2.9.1.tar.gz) = 4249cfa9be9ea98857c216673ece95201444982a91a7aaa953aa98ca3326796d -SIZE (mixmaster-2.9.1.tar.gz) = 534816 +SHA256 (mixmaster-3.0.2d.tar.gz) = 22290968f8ebaef2977268f4dfada55edbc3866a3961808ac1a7c9db46a92a71 +SIZE (mixmaster-3.0.2d.tar.gz) = 690405 SHA256 (mixmaster-update.pl.gz) = b460688aa197bbb7fb6f727961de3f50695e9a1ac28ba55fae0ffabde0408550 SIZE (mixmaster-update.pl.gz) = 4138 -SHA256 (allpingers.txt.gz) = 19ff404694aa013393838e53944521cc12c3248aede701219589631d5c796536 -SIZE (allpingers.txt.gz) = 2360 +SHA256 (allpingers.txt.gz) = 2f698ba304987b71ee503ca95b54760829f480fb1060d537fb6721b7e0ab2ef0 +SIZE (allpingers.txt.gz) = 1937 diff --git a/mail/mixmaster/files/Makefile.in b/mail/mixmaster/files/Makefile.in deleted file mode 100644 index f175301d9550..000000000000 --- a/mail/mixmaster/files/Makefile.in +++ /dev/null @@ -1,76 +0,0 @@ -# Mixmaster version 2.9 -- (C) 1999 - 2003 Anonymizer Inc. and others. - -# Mixmaster may be redistributed and modified under certain conditions. -# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF -# ANY KIND, either express or implied. See the file COPYRIGHT for -# details. - -# Edit according to the libraries you want to use: -INC = -I/usr/local/include -I/usr/include -DEF = -DUSE_ZLIB -DUSE_PCRE -DUSE_NCURSES -DHAVE_NCURSES_H -DUSE_IDEA -DUSE_SOCK -DSPOOL='"/var/tmp/mixmaster"' -DGLOBALMIXCONF='"/usr/local/etc/mixmaster/client.cfg"' -DHOMEMIXDIR="\".Mix\"" -LIBS = -LDFLAGS = -lz -lpcre -L/usr/local/lib -lncurses -ltermcap -rpath=${LOCALBASE}/lib -lcrypto - -OPT = -g -Wall -# OPT = -g -pg -Wall -DDEBUG -# OPT = -O2 -Wall - -CFLAGS = $(INC) $(DEF) $(OPT) -CC = gcc -AR = ar rc -RANLIB = ranlib -#MAKE = make - -OBJ = mix.o rem.o rem1.o rem2.o rem3.o chain.o chain1.o chain2.o chain3.o nym.o pgp.o pgpdb.o pgpdata.o pgpget.o pgpcreat.o pool.o mail.o rfc822.o mime.o keymgt.o compress.o stats.o crypto.o random.o util.o buffers.o - -MIXOBJ = rndseed.o menu.o menusend.o menunym.o menuutil.o -NOMENUOBJ = rndseed.o dummy.o -WINOBJ = winmain.o winutil.o - -all: mix - -mix: $(OBJ) $(MIXOBJ) main.o $(LIBS) - $(CC) $(OBJ) $(MIXOBJ) main.o $(LIBS) $(LDFLAGS) -o mix - -libmix.a: $(OBJ) $(MIXOBJ) dllmain.o - $(AR) libmix.a $(OBJ) $(MIXOBJ) dllmain.o - -libmix32.a: libmix.a mixlib.def - dllwrap --dllname mixlib.dll --def mixlib.def --output-lib libmix32.a libmix.a zlib-1.1.4/libz.a pcre-2.08/libpcre.a openssl/libeay32.a -lwsock32 - -dllmix: main.o libmix32.a - $(CC) main.o libmix32.a -o dllmix - -winmix.exe: $(WINOBJ) libmix32.a - $(CC) $(WINOBJ) libmix32.a -lgdi32 -luser32 $(LDFLAGS) -o mix.exe - -winmix: winmenu.res #winmix.exe - rsrc winmenu.res mix.exe - -winmenu.o: winmenu.rc winmenu.h - windres winmenu.rc winmenu.o - -remailer: $(OBJ) $(NOMENUOBJ) remailer.o $(LIBS) - $(CC) $(OBJ) $(NOMENUOBJ) remailer.o $(LIBS) $(LDFLAGS) -o remailer - -mpgp: $(OBJ) $(NOMENUOBJ) pgptest.o $(LIBS) - $(CC) $(OBJ) $(NOMENUOBJ) pgptest.o $(LIBS) $(LDFLAGS) -o mpgp - -test: $(OBJ) test.o $(NOMENUOBJ) $(LIBS) - $(CC) $(OBJ) test.o $(NOMENUOBJ) $(LIBS) $(LDFLAGS) -o test - -clean: - -rm -f *.o *.a *.res *~ mix *.exe remailer test mpgp core gmon.out - -allclean: clean - -rm -f Makefile - -ci: clean - cd ~/mix3; ci -l * Mix/* Mix/Src/*; echo - -include Makefile.deps - - - - - diff --git a/mail/mixmaster/files/patch-Mix-Src-Makefile.in b/mail/mixmaster/files/patch-Mix-Src-Makefile.in new file mode 100644 index 000000000000..caf98abcef16 --- /dev/null +++ b/mail/mixmaster/files/patch-Mix-Src-Makefile.in @@ -0,0 +1,47 @@ +--- Mix/Src/Makefile.in.orig 2014-06-01 22:58:49.000000000 +0200 ++++ Mix/Src/Makefile.in 2014-06-01 23:00:44.000000000 +0200 +@@ -8,10 +8,10 @@ + # $Id: Makefile.in 647 2003-10-25 23:34:13Z weasel $ + + # Edit according to the libraries you want to use: +-INC = %INC +-DEF = %DEF -DUSE_SOCK %MIXDIR +-LIBS = %LIBS +-LDFLAGS = %LDFLAGS ++INC = -I/usr/local/include -I/usr/include ++DEF = -DUSE_ZLIB -DUSE_PCRE -DUSE_AES -DUSE_NCURSES -DHAVE_NCURSES_H -DUSE_IDEA -DHAVE_SETENV -DUSE_SOCK -DSPOOL='"/tmp/mixmaster"' -DGLOBALMIXCONF='"%%ETCDIR%%/mix.cfg"' -DHOMEMIXDIR='".Mix"' ++LIBS = ++LDFLAGS = -Wl -lz -lpcre -L/usr/local/lib -lncurses -ltermcap -lcrypto + + # Set compiler options + # Note: Define NDEBUG to disable "assert" when not using DEBUG +@@ -21,7 +21,6 @@ + # OPT = -O2 -Wall -DNDEBUG + + CFLAGS = $(INC) $(DEF) $(OPT) +-CC = gcc + AR = ar rc + RANLIB = ranlib + #MAKE = make +@@ -32,7 +31,7 @@ + NOMENUOBJ = rndseed.o dummy.o + WINOBJ = winmain.o winutil.o + +-all: mixmaster ++all: mixmaster mpgp remailer + + mixmaster: $(OBJ) $(MIXOBJ) main.o $(LIBS) + $(CC) $(OBJ) $(MIXOBJ) main.o $(LIBS) $(LDFLAGS) -o mixmaster +@@ -77,10 +76,10 @@ + + parsedate.tab.c: parsedate.y + @echo Expect 6 shift/reduce conflicts +- bison parsedate.y ++ yacc -o parsedate.tab.c parsedate.y + + parsedate: parsedate.tab.c +- gcc -DTEST parsedate.tab.c -o parsedate ++ $(CC) -DTEST parsedate.tab.c -o parsedate + + + include Makefile.deps diff --git a/mail/mixmaster/files/patch-Mix-Src-config.h b/mail/mixmaster/files/patch-Mix-Src-config.h new file mode 100644 index 000000000000..df63662883d9 --- /dev/null +++ b/mail/mixmaster/files/patch-Mix-Src-config.h @@ -0,0 +1,16 @@ +--- Mix/Src/config.h.orig 2014-06-01 23:03:49.000000000 +0200 ++++ Mix/Src/config.h 2014-06-01 23:04:46.000000000 +0200 +@@ -179,11 +179,11 @@ + #define BUFSIZE 4096 + + /** if it is a systemwide installation defined GLOBALMIXCONF **********/ +-/* #define GLOBALMIXCONF "/etc/mix.cfg" */ ++#define GLOBALMIXCONF "%%ETCDIR%%/mix.cfg" + + /* The path to append to a user's homedirectory for his local Mix dir */ + #ifndef HOMEMIXDIR +-#define HOMEMIXDIR "Mix" ++#define HOMEMIXDIR ".Mix" + #endif + + /** file names ********************************************************/ diff --git a/mail/mixmaster/files/patch-Mix-Src-mix.c b/mail/mixmaster/files/patch-Mix-Src-mix.c new file mode 100644 index 000000000000..53ffcefe4bfa --- /dev/null +++ b/mail/mixmaster/files/patch-Mix-Src-mix.c @@ -0,0 +1,11 @@ +--- Mix/Src/mix.c.orig 2014-06-01 23:05:54.000000000 +0200 ++++ Mix/Src/mix.c 2014-06-01 23:06:14.000000000 +0200 +@@ -430,7 +430,7 @@ + #ifdef WIN32 + strnncpy(SENDMAIL , "outfile"); + #else /* end of WIN32 */ +- strnncpy(SENDMAIL , "/usr/lib/sendmail -t"); ++ strnncpy(SENDMAIL , "/usr/sbin/sendmail -t"); + #endif /* else if not WIN32 */ + strnncpy(SENDANONMAIL , ""); + strnncpy(NEWS , ""); diff --git a/mail/mixmaster/files/patch-Mix-conf-mix.cfg b/mail/mixmaster/files/patch-Mix-conf-mix.cfg new file mode 100644 index 000000000000..5ae3af7e2889 --- /dev/null +++ b/mail/mixmaster/files/patch-Mix-conf-mix.cfg @@ -0,0 +1,8 @@ +--- Mix/conf/mix.cfg.orig 2014-06-01 23:07:26.000000000 +0200 ++++ Mix/conf/mix.cfg 2014-06-01 23:07:48.000000000 +0200 +@@ -12,3 +12,5 @@ + RELFINAL 99 + MAXLAT 36h + MINLAT 5m ++SENDMAIL /usr/sbin/sendmail -t ++POOL /var/spool/mixmaster diff --git a/mail/mixmaster/files/patch-aa b/mail/mixmaster/files/patch-aa deleted file mode 100644 index ef3a87f29f69..000000000000 --- a/mail/mixmaster/files/patch-aa +++ /dev/null @@ -1,11 +0,0 @@ ---- config.h.orig 2003-09-27 18:53:56.000000000 +0200 -+++ config.h 2003-09-27 18:54:08.000000000 +0200 -@@ -138,7 +138,7 @@ - /* Give up if a file is larger than BUFFER_MAX bytes: */ - /* #define BUFFER_MAX 64*1024*1024 */ - --#define PATHMAX 512 -+#define PATHMAX 1024 - #define LINELEN 128 - #define BUFSIZE 4096 - diff --git a/mail/mixmaster/files/patch-ab b/mail/mixmaster/files/patch-ab deleted file mode 100644 index a04e9078dd50..000000000000 --- a/mail/mixmaster/files/patch-ab +++ /dev/null @@ -1,11 +0,0 @@ ---- mix.c.orig 2003-09-27 19:42:28.000000000 +0200 -+++ mix.c 2003-09-27 19:42:47.000000000 +0200 -@@ -86,7 +86,7 @@ char POOLDIR[PATHMAX]; - #ifdef WIN32 - char SENDMAIL[LINELEN] = "outfile"; - #else /* end of WIN32 */ --char SENDMAIL[LINELEN] = "/usr/lib/sendmail -t"; -+char SENDMAIL[LINELEN] = "/usr/sbin/sendmail -t"; - #endif /* else if not WIN32 */ - char SENDANONMAIL[LINELEN]; - char NEWS[LINELEN]; diff --git a/mail/mixmaster/files/patch-ac b/mail/mixmaster/files/patch-ac deleted file mode 100644 index 415b9fb6cc36..000000000000 --- a/mail/mixmaster/files/patch-ac +++ /dev/null @@ -1,13 +0,0 @@ ---- pcre-2.08/Makefile.orig Fri Aug 30 09:36:52 2002 -+++ pcre-2.08/Makefile Fri Aug 30 09:37:14 2002 -@@ -51,8 +51,8 @@ - # into errlist. - - AR = ar cq --CC = gcc -O2 -Wall --CFLAGS = -+#CC = gcc -O2 -Wall -+CFLAGS += -Wall - RANLIB = @true - - # If you are going to obey "make install", edit these settings for your diff --git a/mail/mixmaster/files/patch-ad b/mail/mixmaster/files/patch-ad deleted file mode 100644 index 078d348ef654..000000000000 --- a/mail/mixmaster/files/patch-ad +++ /dev/null @@ -1,8 +0,0 @@ ---- ../conf/mix.cfg.orig Wed Oct 31 09:19:55 2001 -+++ ../conf/mix.cfg Mon Oct 28 13:17:39 2002 -@@ -1,3 +1,5 @@ -+SENDMAIL /usr/sbin/sendmail -t -+POOL /var/spool/mixmaster - ######################## Client configuration: ########################## - REMAIL n - diff --git a/mail/mixmaster/pkg-descr b/mail/mixmaster/pkg-descr index d0ba85ad3771..1d076df6951b 100644 --- a/mail/mixmaster/pkg-descr +++ b/mail/mixmaster/pkg-descr @@ -2,7 +2,7 @@ Mixmaster is an "Chaumian mix-net" anonymous remailer. Remailers provide protection against traffic analysis and allow sending email anonymously or pseudonymously. -This software comes in a client only configuration! If you want -to setup a mixmaster server, read through the example files and man page. +This software comes in a client only configuration! If you want to setup a +mixmaster server, read through the example files and man page. -WWW: http://mixmaster.sf.net +WWW: https://github.com/crooks/mixmaster diff --git a/mail/mixmaster/pkg-plist b/mail/mixmaster/pkg-plist index cf03708f94d1..4dd2a62806c8 100644 --- a/mail/mixmaster/pkg-plist +++ b/mail/mixmaster/pkg-plist @@ -1,27 +1,6 @@ bin/mixmaster -bin/mixmaster-update.pl -%%EXAMPLESDIR%%/README -%%EXAMPLESDIR%%/abuse.txt.in -%%EXAMPLESDIR%%/adminkey.txt -%%EXAMPLESDIR%%/allpingers.txt -%%EXAMPLESDIR%%/blocked.txt.in -%%EXAMPLESDIR%%/dest.alw -%%EXAMPLESDIR%%/dest.blk -%%EXAMPLESDIR%%/end.hlp -%%EXAMPLESDIR%%/header.blk -%%EXAMPLESDIR%%/intro.hlp -%%EXAMPLESDIR%%/mix.cfg -%%EXAMPLESDIR%%/mix.cfg.ex -%%EXAMPLESDIR%%/mix.hlp -%%EXAMPLESDIR%%/mlist.txt -%%EXAMPLESDIR%%/news.hlp -%%EXAMPLESDIR%%/pgp.hlp -%%EXAMPLESDIR%%/pgponly.hlp -%%EXAMPLESDIR%%/pubring.asc -%%EXAMPLESDIR%%/pubring.mix -%%EXAMPLESDIR%%/rab.blk -%%EXAMPLESDIR%%/reply.txt.in -%%EXAMPLESDIR%%/rlist.txt -%%EXAMPLESDIR%%/type1.hlp -%%EXAMPLESDIR%%/usage.txt.in -@dirrm share/examples/mixmaster +bin/mixmaster-update +bin/mpgp +bin/remailer +man/man1/mixmaster.1.gz +man/man1/mpgp.1.gz |