3bab5a3775
Reported to mini_httpd developers. Patch is found various places on internet.
44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.13 2007/01/18 16:28:07 reed Exp $
|
|
|
|
DISTNAME= mini_httpd-1.19
|
|
PKGREVISION= 3
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://www.acme.com/software/mini_httpd/
|
|
|
|
MAINTAINER= reed@reedmedia.net
|
|
HOMEPAGE= http://www.acme.com/software/mini_httpd/
|
|
COMMENT= Small, forking webserver with IPv6 and SSL support
|
|
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
|
|
|
MAKE_ENV+= PKG_CFLAGS=${CFLAGS:M*:Q}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
LDFLAGS+= -lssl -lcrypto -lcrypt
|
|
|
|
.if ${OPSYS} != "IRIX"
|
|
LDFLAGS+= -lutil
|
|
.endif
|
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man1 ${PKGMANDIR}/man8 sbin
|
|
|
|
do-install:
|
|
for FILE in mini_httpd.8 htpasswd.1; do \
|
|
${MV} -f ${WRKSRC}/$${FILE} ${WRKSRC}/$${FILE}.bak; \
|
|
${SED} -e 's/\([^.]\)htpasswd/\1mhtpasswd/g' \
|
|
-e 's/^htpasswd/m&/' \
|
|
${WRKSRC}/$${FILE}.bak > ${WRKSRC}/$${FILE}; \
|
|
done
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mini_httpd ${PREFIX}/sbin/
|
|
${INSTALL_PROGRAM} ${WRKSRC}/htpasswd ${PREFIX}/sbin/mhtpasswd
|
|
${INSTALL_MAN} ${WRKSRC}/mini_httpd.8 ${PREFIX}/${PKGMANDIR}/man8/
|
|
${INSTALL_MAN} ${WRKSRC}/htpasswd.1 ${PREFIX}/${PKGMANDIR}/man1/mhtpasswd.1
|
|
|
|
.if !empty(LOWER_OPSYS:Mirix5*)
|
|
# needs snprintf()
|
|
. include "../../pkgtools/libnbcompat/buildlink3.mk"
|
|
MAKE_ENV+= LDLIBS=${BUILDLINK_LDADD.libnbcompat:Q}
|
|
.endif
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|