View | Details | Raw Unified | Return to bug 194227 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-11 / +9 lines)
Lines 2-12 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	micro_httpd
4
PORTNAME=	micro_httpd
5
PORTVERSION=	2001.12.14
5
PORTVERSION=	2014.08.14
6
CATEGORIES=	www
6
CATEGORIES=	www
7
MASTER_SITES=	http://www.acme.com/software/micro_httpd/ \
7
MASTER_SITES=	http://www.acme.com/software/micro_httpd/
8
		http://www.unknown.nu/ports/
8
DISTNAME=	${PORTNAME}_14Aug2014
9
DISTNAME=	${PORTNAME}_14dec2001
10
9
11
MAINTAINER=	user@unknown.nu
10
MAINTAINER=	user@unknown.nu
12
COMMENT=	Extremely small web server
11
COMMENT=	Extremely small web server
Lines 14-25 Link Here
14
WRKSRC=		${WRKDIR}/${PORTNAME}
13
WRKSRC=		${WRKDIR}/${PORTNAME}
15
PLIST_FILES=	sbin/micro_httpd man/man8/micro_httpd.8.gz
14
PLIST_FILES=	sbin/micro_httpd man/man8/micro_httpd.8.gz
16
15
17
post-patch:
16
#MAKEFILE=	/dev/null
18
	@${REINPLACE_CMD} -e "s:/usr/local/sbin:${PREFIX}/sbin:g; \
17
ALL_TARGET=	${PORTNAME}
19
		s:/usr/local/man/man8:${MAN8PREFIX}/man/man8:g; \
20
		s:gcc:${CC}:g; s:-O:${CFLAGS}:g" \
21
		${WRKSRC}/Makefile
22
	@${REINPLACE_CMD} -e "s/^.TH micro_httpd 1/.TH micro_httpd 8/g" \
23
		${WRKSRC}/micro_httpd.8
24
18
19
do-install:
20
	${INSTALL_PROGRAM} ${WRKSRC}/micro_httpd ${STAGEDIR}${PREFIX}/sbin
21
	${INSTALL_MAN} ${WRKSRC}/micro_httpd.8 ${STAGEDIR}${MAN1PREFIX}/man/man8/micro_httpd.8.gz
22
25
.include <bsd.port.mk>
23
.include <bsd.port.mk>
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (micro_httpd_14dec2001.tar.gz) = 111be3481b4c105aa3a90afb5f1ad29e96c124a8a4da1f6fe3802210997cab22
1
SHA256 (micro_httpd_14Aug2014.tar.gz) = 3313f19d80897caa0fa9cd5cc7481736302bb6f61ac45238d240871117119556
2
SIZE (micro_httpd_14dec2001.tar.gz) = 4665
2
SIZE (micro_httpd_14Aug2014.tar.gz) = 5318
(-)files/patch-Makefile (-15 lines)
Lines 1-15 Link Here
1
--- Makefile.orig	2014-07-02 23:56:06.393446603 +0800
2
+++ Makefile	2014-07-02 23:56:23.688452420 +0800
3
@@ -16,10 +16,8 @@ micro_httpd.o:	micro_httpd.c
4
 	${CC} ${CFLAGS} -c micro_httpd.c
5
 
6
 install:	all
7
-	rm -f ${BINDIR}/micro_httpd
8
-	cp micro_httpd ${BINDIR}
9
-	rm -f ${MANDIR}/micro_httpd.8
10
-	cp micro_httpd.8 ${MANDIR}
11
+	cp micro_httpd $(DESTDIR)${BINDIR}
12
+	cp micro_httpd.8 $(DESTDIR)${MANDIR}
13
 
14
 clean:
15
 	rm -f micro_httpd *.o core core.* *.core

Return to bug 194227