Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2014 11:00:35 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350093 - in head/news/sn: . files
Message-ID:  <201404041100.s34B0ZNf038767@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Apr  4 11:00:35 2014
New Revision: 350093
URL: http://svnweb.freebsd.org/changeset/ports/350093
QAT: https://qat.redports.org/buildarchive/r350093/

Log:
  Do not leak stagedir in the generated binary
  Remove now useless pre-su target
  
  MFH:	2014Q2

Added:
  head/news/sn/files/
  head/news/sn/files/patch-Makefile   (contents, props changed)
Modified:
  head/news/sn/Makefile

Modified: head/news/sn/Makefile
==============================================================================
--- head/news/sn/Makefile	Fri Apr  4 10:54:11 2014	(r350092)
+++ head/news/sn/Makefile	Fri Apr  4 11:00:35 2014	(r350093)
@@ -3,6 +3,7 @@
 
 PORTNAME=	sn
 PORTVERSION=	0.3.8
+PORTREVISION=	1
 CATEGORIES=	news
 MASTER_SITES=	http://www.infa.abo.fi/~patrik/sn/files/ \
 		http://home.arcor.de/teambushido/fbsd_ports/ \
@@ -13,9 +14,8 @@ COMMENT=	Small news system for small sit
 
 LICENSE=	GPLv2
 
-USES=		gmake
-USE_BZIP2=	yes
-MAKE_ARGS+=	PREFIX="${STAGEDIR}${PREFIX}" LD="${CC}" CC="${CC}"
+USES=		gmake tar:bzip2
+MAKE_ARGS+=	PREFIX="${PREFIX}" LD="${CC}" CC="${CC}"
 
 PORTDOCS=	README CHANGES FAQ INSTALL INTERNALS \
 		THANKS TODO INSTALL.notes INSTALL.notes2 \
@@ -30,7 +30,7 @@ post-patch:
 		s|-g -Wall -pedantic -O|${CFLAGS} -Wall -pedantic|' \
 			${WRKSRC}/Makefile
 
-pre-su-install:
+pre-install:
 	@${MKDIR} ${STAGEDIR}/var/spool/news
 
 post-install:

Added: head/news/sn/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/news/sn/files/patch-Makefile	Fri Apr  4 11:00:35 2014	(r350093)
@@ -0,0 +1,21 @@
+--- ./Makefile.orig	2014-04-04 12:17:36.551829000 +0200
++++ ./Makefile	2014-04-04 12:20:01.852681999 +0200
+@@ -144,12 +144,12 @@
+ strip: $(BINS)
+ 	strip $^
+ 
+-install: all #$(SNROOT) $(BINDIR) $(MANDIR)/man8 # commented out so make -n install works without the dirs
+-	$(INSTALL) $(PROGS) $(BINDIR)
+-	$(INSTALL) *.8 $(MANDIR)/man8
+-	-cd $(BINDIR); rm -f sncat; ln -s snscan sncat
+-	-cd $(BINDIR); rm -f sncancel; ln -s snscan sncancel
+-	-cd $(BINDIR); rm -f snstore; ln -s snsend snstore
++install: all #$(SNROOT) $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man8 # commented out so make -n install works without the dirs
++	$(INSTALL) $(PROGS) $(DESTDIR)$(BINDIR)
++	$(INSTALL) *.8 $(DESTDIR)$(MANDIR)/man8
++	-cd $(DESTDIR)$(BINDIR); rm -f sncat; ln -s snscan sncat
++	-cd $(DESTDIR)$(BINDIR); rm -f sncancel; ln -s snscan sncancel
++	-cd $(DESTDIR)$(BINDIR); rm -f snstore; ln -s snsend snstore
+ 
+ spoolclean:
+ 	@echo -n "make $@ will wipe out your news spool!  Sure? [y/n] "



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404041100.s34B0ZNf038767>