diff --git a/mail/mls/Makefile b/mail/mls/Makefile index 525ba910f747..ccaf23672c54 100644 --- a/mail/mls/Makefile +++ b/mail/mls/Makefile @@ -1,43 +1,43 @@ PORTNAME= mls PORTVERSION= 1.3 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail MASTER_SITES= https://www.marki-online.net/MLS/ MAINTAINER= fuz@FreeBSD.org COMMENT= Program for generating various statistics on emails WWW= https://www.marki-online.net/MLS/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING.gz USES= tar:tgz MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS}" ALL_TARGET= mls SUB_FILES= pkg-message -PLIST_FILES= bin/mls man/man1/mls.1.gz +PLIST_FILES= bin/mls share/man/man1/mls.1.gz PORTDATA= html/bar.gif html/mls_class.php html/style_mls.css PORTDOCS= README.txt PORTEXAMPLES= README example.php forward procmailrc OPTIONS_DEFINE= DOCS EXAMPLES post-install: ${MKDIR} ${STAGEDIR}${DATADIR}/html .for f in ${PORTDATA} ${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DATADIR}/html/ .endfor post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR} post-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for f in ${PORTEXAMPLES} ${INSTALL_DATA} ${WRKSRC}/examples/$f ${STAGEDIR}${EXAMPLESDIR} .endfor .include diff --git a/mail/mls/files/patch-Makefile b/mail/mls/files/patch-Makefile index 3bd3e25bbb1c..124d6f9f04ab 100644 --- a/mail/mls/files/patch-Makefile +++ b/mail/mls/files/patch-Makefile @@ -1,30 +1,30 @@ --- Makefile.orig 2003-06-10 20:26:51 UTC +++ Makefile @@ -5,13 +5,13 @@ # -m386 (486,pentium,pentiumpro) #OPTIMIZE=-O7 -mpentiumpro -OPTIMIZE=-O3 +#OPTIMIZE=-O3 # debug symbols will be stripped anyway during 'make install' DEBUG=-g #### DON'T CHANGE ANYTHING BELOW #### -DESTDIR=/usr/local +DESTDIR?=/usr/local CFLAGS=-Wall $(OPTIMIZE) $(DEBUG) LIBS=-lm CC=gcc -@@ -37,9 +37,8 @@ mls_text.o: mls_text.c mls_text.h mls_lang.h Makefile +@@ -37,9 +37,8 @@ install: mls $(CC) $(CFLAGS) -c mls_text.c -o mls_text.o install: mls - install -m 755 -g root -o root -s mls $(DESTDIR)/bin - install -m 644 -g root -o root mls.1 $(DESTDIR)/man/man1 - gzip -9f $(DESTDIR)/man/man1/mls.1 + $(BSD_INSTALL_PROGRAM) mls $(DESTDIR)$(PREFIX)/bin -+ $(BSD_INSTALL_MAN) mls.1 $(DESTDIR)$(PREFIX)/man/man1 ++ $(BSD_INSTALL_MAN) mls.1 $(DESTDIR)$(PREFIX)/share/man/man1 @echo "**************************************************************" @echo "*** To use HTML feature or PHP wrapper, copy contents of ***" @echo "*** 'html' subdirectory to location accessible by your ***"