1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

- Update to version 2014.08.14 [1]

- Respect CFLAGS during build

PR:		194227 [1]
Submitted by:	Neel Chauhan <neel@neelc.org> [1]
Approved by:	maintainer timeout
This commit is contained in:
Pawel Pekala 2014-11-02 18:44:33 +00:00
parent 414c8f068c
commit dae35c20d9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=372084
3 changed files with 12 additions and 27 deletions

View File

@ -2,11 +2,10 @@
# $FreeBSD$
PORTNAME= micro_httpd
PORTVERSION= 2001.12.14
PORTVERSION= 2014.08.14
CATEGORIES= www
MASTER_SITES= http://www.acme.com/software/micro_httpd/ \
http://www.unknown.nu/ports/
DISTNAME= ${PORTNAME}_14dec2001
MASTER_SITES= http://www.acme.com/software/micro_httpd/
DISTNAME= ${PORTNAME}_14Aug2014
MAINTAINER= user@unknown.nu
COMMENT= Extremely small web server
@ -14,12 +13,13 @@ COMMENT= Extremely small web server
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_FILES= sbin/micro_httpd man/man8/micro_httpd.8.gz
ALL_TARGET= ${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e "s:/usr/local/sbin:${PREFIX}/sbin:g; \
s:/usr/local/man/man8:${MAN8PREFIX}/man/man8:g; \
s:gcc:${CC}:g; s:-O:${CFLAGS}:g" \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s/^.TH micro_httpd 1/.TH micro_httpd 8/g" \
${WRKSRC}/micro_httpd.8
${REINPLACE_CMD} 's|-O|${CFLAGS}|' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/micro_httpd ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/micro_httpd.8 ${STAGEDIR}${MAN1PREFIX}/man/man8
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (micro_httpd_14dec2001.tar.gz) = 111be3481b4c105aa3a90afb5f1ad29e96c124a8a4da1f6fe3802210997cab22
SIZE (micro_httpd_14dec2001.tar.gz) = 4665
SHA256 (micro_httpd_14Aug2014.tar.gz) = 3313f19d80897caa0fa9cd5cc7481736302bb6f61ac45238d240871117119556
SIZE (micro_httpd_14Aug2014.tar.gz) = 5318

View File

@ -1,15 +0,0 @@
--- Makefile.orig 2014-07-02 23:56:06.393446603 +0800
+++ Makefile 2014-07-02 23:56:23.688452420 +0800
@@ -16,10 +16,8 @@ micro_httpd.o: micro_httpd.c
${CC} ${CFLAGS} -c micro_httpd.c
install: all
- rm -f ${BINDIR}/micro_httpd
- cp micro_httpd ${BINDIR}
- rm -f ${MANDIR}/micro_httpd.8
- cp micro_httpd.8 ${MANDIR}
+ cp micro_httpd $(DESTDIR)${BINDIR}
+ cp micro_httpd.8 $(DESTDIR)${MANDIR}
clean:
rm -f micro_httpd *.o core core.* *.core