$NetBSD: patch-aa,v 1.2 2007/09/09 02:12:49 jlam Exp $ --- Makefile.orig Fri Nov 1 23:02:57 2002 +++ Makefile @@ -14,21 +14,23 @@ CRYPT_LIB = -lcrypt # http://www.openssl.org/ Make sure the SSL_TREE definition points to the # tree with your OpenSSL installation - depending on how you installed it, # it may be in /usr/local instead of /usr/local/ssl. -#SSL_TREE = /usr/local/ssl -#SSL_DEFS = -DUSE_SSL -#SSL_INC = -I${SSL_TREE}/include -#SSL_LIBS = -L${SSL_TREE}/lib -lssl -lcrypto +SSL_TREE = ${PREFIX} +SSL_DEFS = -DUSE_SSL +SSL_INC = -I${SSL_TREE}/include +SSL_LIBS = -L${SSL_TREE}/lib -lssl -lcrypto -BINDIR = /usr/local/sbin -MANDIR = /usr/local/man +BINDIR = ${PREFIX}/sbin +MANDIR = ${PREFIX}/${PKGMANDIR} CC = gcc CDEFS = ${SSL_DEFS} ${SSL_INC} -CFLAGS = -O ${CDEFS} +#CFLAGS = -O ${CDEFS} #CFLAGS = -g ${CDEFS} -LDFLAGS = -s +CFLAGS = ${PKG_CFLAGS} ${CDEFS} +#LDFLAGS = -s #LDFLAGS = -g -LDLIBS = ${SSL_LIBS} ${SYSV_LIBS} ${CRYPT_LIB} +LDFLAGS = ${PKG_LDFLAGS} +LDLIBS = ${SSL_LIBS} ${SYSV_LIBS} ${CRYPT_LIB} ${PKG_LIBS} all: mini_httpd htpasswd @@ -72,14 +74,13 @@ mini_httpd.pem: mini_httpd.cnf install: all - rm -f ${BINDIR}/mini_httpd ${BINDIR}/htpasswd - -mkdir -p ${BINDIR} - cp mini_httpd htpasswd ${BINDIR} - rm -f ${MANDIR}/man8/mini_httpd.8 ${MANDIR}/man1/htpasswd.1 - -mkdir -p ${MANDIR}/man8 - cp mini_httpd.8 ${MANDIR}/man8 - -mkdir -p ${MANDIR}/man1 - cp htpasswd.1 ${MANDIR}/man1 + ${BSD_INSTALL_PROGRAM_DIR} ${BINDIR} + ${BSD_INSTALL_PROGRAM} mini_httpd ${BINDIR}/mini_httpd + ${BSD_INSTALL_PROGRAM} htpasswd ${BINDIR}/mhtpasswd + ${BSD_INSTALL_MAN_DIR} ${MANDIR}/man8 + ${BSD_INSTALL_MAN} mini_httpd.8 ${MANDIR}/man8/mini_httpd.8 + ${BSD_INSTALL_MAN_DIR} ${MANDIR}/man1 + ${BSD_INSTALL_MAN} htpasswd.1 ${MANDIR}/man1/mhtpasswd.1 clean: rm -f mini_httpd mime_encodings.h mime_types.h htpasswd mini_httpd.rnd *.o core core.* *.core