1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00

Fix build as a user.

Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2015-12-29 13:07:15 +00:00
parent 6256117d69
commit e732f8374c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=404740
3 changed files with 10 additions and 22 deletions

View File

@ -34,7 +34,7 @@ CPPFLAGS+= -I${LOCALBASE}/news/include
CONFIGURE_ARGS+= --without-history
.endif
DOCS= AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO
PORTDOCS= AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO
.include <bsd.port.options.mk>
@ -52,12 +52,10 @@ post-build:
${STRIP_CMD} ${WRKSRC}/src/newsx
.endif
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/news/spool/inhosts
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for FILE in ${DOCS}
.for FILE in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
@${ECHO} "Documentation installed in ${DOCSDIR}."
.include <bsd.port.mk>

View File

@ -1,6 +1,6 @@
--- configure.orig 2003-05-18 19:25:34.000000000 +0200
+++ configure 2013-11-27 17:22:07.000000000 +0100
@@ -253,7 +253,7 @@
--- configure.orig 2003-05-18 17:25:34 UTC
+++ configure
@@ -253,7 +253,7 @@ exec 6>&1
#
# Initializations.
#
@ -9,7 +9,7 @@
ac_config_libobj_dir=.
cross_compiling=no
subdirs=
@@ -1712,15 +1712,15 @@
@@ -1712,15 +1712,15 @@ PACKAGE_DATE=`date | sed 's/^[^ ]* \([^
VISIT="/usr/lib/news /var/news/etc /usr/spool/news /usr/share/news \
@ -29,13 +29,14 @@
# Check whether --with-newshome or --without-newshome was given.
@@ -1890,7 +1890,11 @@
@@ -1890,7 +1890,12 @@ echo $ECHO_N "checking and found INN...
# it has been reported that some INN 2.1 had its own VERSION
VERSION_save="$VERSION"
VERSION=
+ prefix_orig="${prefix}"
+ exec_prefix_orig="${exec_prefix}"
. $NEWSCONFIG
+ unset TMPDIR
+ prefix="${prefix_orig}"
+ exec_prefix="${exec_prefix_orig}"
INN_VERSION="$VERSION"

View File

@ -4,15 +4,4 @@ man/man1/newsq.1.gz
man/man5/in.hosts.5.gz
man/man5/newsx.conf.5.gz
man/man8/newsx.8.gz
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/FAQ
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrmtry news/spool/inhosts
@dirrmtry news/spool
@dirrmtry news
@dir(news,news,) news/spool/inhosts