mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
Do not leak stagedir in the generated binary
Remove now useless pre-su target MFH: 2014Q2
This commit is contained in:
parent
3e79f7618a
commit
8ea9e7a706
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350093
@ -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 sites serving
|
||||
|
||||
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:
|
||||
|
21
news/sn/files/patch-Makefile
Normal file
21
news/sn/files/patch-Makefile
Normal file
@ -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] "
|
Loading…
Reference in New Issue
Block a user