1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- add stage support

- allow build / strip without root privilege
This commit is contained in:
Olli Hauer 2014-05-24 17:21:37 +00:00
parent 279356f957
commit 31c72f1028
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355058
5 changed files with 55 additions and 11 deletions

View File

@ -9,17 +9,16 @@ MASTER_SITES= http://resnet.uoregon.edu/~gurney_j/jmpc/dist/
MAINTAINER= ports@FreeBSD.org
COMMENT= C library to parse CGI Forms
LIB_DEPENDS= mime.1:${PORTSDIR}/devel/mime
LIB_DEPENDS= libmime.so:${PORTSDIR}/devel/mime
GNU_CONFIGURE= yes
MAN3= cgiclose.3 cgigetvalue.3 cginewquerystr.3
USE_LDCONFIG= yes
CFLAGS+= "-fPIC"
NO_STAGE= yes
.include <bsd.port.pre.mk>
post-install:
${LN} -sf libcgiparse.so.1 ${PREFIX}/lib/libcgiparse.so
${LN} -sf libcgiparse.so.1 ${STAGEDIR}${PREFIX}/lib/libcgiparse.so
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcgiparse.so
.include <bsd.port.post.mk>

View File

@ -0,0 +1,44 @@
--- ./Makefile.in.orig 2014-05-24 19:06:10.000000000 +0200
+++ ./Makefile.in 2014-05-24 19:08:17.000000000 +0200
@@ -38,7 +38,7 @@
LIBDIR = @libdir@
LIBOWN = 0
LIBGRP = 0
-LIBMOD = 0444
+LIBMOD = 0644
INCDIR = @includedir@
INCOWN = 0
INCGRP = 0
@@ -72,24 +72,21 @@
$(TPROG) $(TOBJS) .depend
install: $(ARNAME) $(SONAME) $(PANAME) maninstall
- mkdir -p -m 755 $(LIBDIR)
+ mkdir -p -m 755 $(DESTDIR)$(LIBDIR)
for i in $(ARNAME) $(SONAME) $(PANAME); do \
- cp $$i $(LIBDIR); \
- chown $(LIBOWN):$(LIBGRP) $(LIBDIR)/$$i; \
- chmod $(LIBMOD) $(LIBDIR)/$$i; \
+ cp $$i $(DESTDIR)$(LIBDIR); \
+ chmod $(LIBMOD) $(DESTDIR)$(LIBDIR)/$$i; \
done
- mkdir -p -m 755 $(INCDIR)
+ mkdir -p -m 755 $(DESTDIR)$(INCDIR)
for i in $(INCS); do \
- cp $$i $(INCDIR); \
- chown $(INCOWN):$(INCGRP) $(INCDIR)/$$i; \
- chmod $(INCMOD) $(INCDIR)/$$i; \
+ cp $$i $(DESTDIR)$(INCDIR); \
+ chmod $(INCMOD) $(DESTDIR)$(INCDIR)/$$i; \
done
maninstall: $(MAN3)
- cp $(MAN3) $(MANDIR)/man3
+ cp $(MAN3) $(DESTDIR)$(MANDIR)/man3
for i in $(MAN3); do \
- chown $(MANOWN):$(MANGRP) $(MANDIR)/man3/$$i; \
- chmod $(MANMOD) $(MANDIR)/man3/$$i; \
+ chmod $(MANMOD) $(DESTDIR)$(MANDIR)/man3/$$i; \
done
depend:

View File

@ -3,3 +3,6 @@ lib/libcgiparse.a
lib/libcgiparse.so
lib/libcgiparse.so.1
lib/libcgiparse_p.a
man/man3/cgiclose.3.gz
man/man3/cgigetvalue.3.gz
man/man3/cginewquerystr.3.gz

View File

@ -15,18 +15,14 @@ CONFIGURE_ARGS= --bindir="${PREFIX}/${CGIDIR}" \
--with-manpath=/usr/share/man:${LOCALBASE}/man \
--with-distro=freebsd --enable-lynx
CGIDIR= www/cgi-bin
PLIST_SUB= CGIDIR="${CGIDIR}"
CGIDIR= www/cgi-bin
MAN1= man2web.1
MAN5= man2web.conf.5
NO_STAGE= yes
post-extract:
${CP} ${FILESDIR}/freebsd.h ${WRKSRC}/src/section_h/
# default Apache configuration disallows symlinks in cgi-bin
post-install:
${LN} -sf ${PREFIX}/${CGIDIR}/man2web ${PREFIX}/bin/man2web
${LN} -sf ${PREFIX}/${CGIDIR}/man2web ${STAGEDIR}${PREFIX}/bin/man2web
.include <bsd.port.mk>

View File

@ -1,4 +1,6 @@
bin/man2web
%%CGIDIR%%/man2web
etc/man2web.conf.default
man/man1/man2web.1.gz
man/man5/man2web.conf.5.gz
%%CGIDIR%%/man2web
@dirrmtry %%CGIDIR%%