1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

- Make MAKE_JOBS_SAFE [1]

- Set OPENSSL default

Submitted by:	danfe [1]
		 Alexander Logvinov <ports@logvinov.com> (maintainer)
This commit is contained in:
Martin Wilke 2009-03-31 21:43:47 +00:00
parent 9ef10a5a67
commit f22fd17116
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=231412
2 changed files with 29 additions and 6 deletions

View File

@ -6,6 +6,7 @@
PORTNAME= opendd
PORTVERSION= 0.7.9
PORTREVISION= 1
CATEGORIES= dns
MASTER_SITES= http://www.bsdmon.com/download/
DISTNAME= ${PORTNAME}.${PORTVERSION}
@ -13,10 +14,10 @@ DISTNAME= ${PORTNAME}.${PORTVERSION}
MAINTAINER= ports@logvinov.com
COMMENT= A small DynDNS client
OPTIONS= OPENDD_SSL "Build with SSL support" off \
RC_NG "Install RC_NG script" on
OPTIONS= OPENSSL "Build with SSL support" on \
RC_NG "Install RC_NG script" on
MAKE_JOBS_UNSAFE= yes
MAKE_JOBS_SAFE= yes
PORTDOCS= COPYING COPYRIGHT README
PLIST_FILES= sbin/${PORTNAME} \
"@unexec if cmp -s %D/%%ETCDIR%%/${PORTNAME}.conf %D/%%ETCDIR%%/${PORTNAME}.conf.default; then ${RM} -f %D/%%ETCDIR%%/${PORTNAME}.conf; fi " \
@ -28,10 +29,10 @@ PLIST_FILES= sbin/${PORTNAME} \
.include <bsd.port.pre.mk>
.if defined(WITH_RC_NG)
USE_RC_SUBR= opendd
USE_RC_SUBR= ${PORTNAME}
.endif
.if defined(WITH_OPENDD_SSL) && !defined(WITHOUT_SSL)
.if !defined(WITHOUT_OPENSSL)
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
@ -42,7 +43,7 @@ pre-patch:
@${MV} ${WRKDIR}/${PORTNAME} ${WRKDIR}/${PORTNAME}.${PORTVERSION}
post-patch:
.if defined(WITH_OPENDD_SSL) && !defined(WITHOUT_SSL)
.if !defined(WITHOUT_OPENSSL)
@${REINPLACE_CMD} 's|use_ssl = 0|use_ssl = 1|' ${WRKSRC}/${PORTNAME}.conf
@${REINPLACE_CMD} -e "s|^FLAGS =|FLAGS = ${CFLAGS}|" -e "s|^SSL =|SSL = ${LDFLAGS}|" \
${WRKSRC}/Makefile

View File

@ -9,3 +9,25 @@
BIN_PROGRAM = opendd
@@ -49,15 +49,13 @@
fi
@echo ""
.c.o:
- @echo "===> Compiling `basename $*.o` ..."
- @if [ "$*" = "./include/socket" ]\
- || [ "$*" = "./main" ]\
- && [ "${USE_SOCKET_SSL}" ]; then\
- echo '${CC} ${FLAGS} ${MACROS} -c -o $*.o $*.c';\
- ${CC} ${FLAGS} ${MACROS} -c -o $*.o $*.c;\
+ @echo "===> Compiling `basename $@` ..."
+ @if [ "${USE_SOCKET_SSL}" ]; then\
+ echo '${CC} ${FLAGS} ${MACROS} -c -o $@ $<';\
+ ${CC} ${FLAGS} ${MACROS} -c -o $@ $<;\
else\
- echo '${CC} ${FLAGS} -c -o $*.o $*.c';\
- ${CC} ${FLAGS} -c -o $*.o $*.c;\
+ echo '${CC} ${FLAGS} -c -o $@ $<';\
+ ${CC} ${FLAGS} -c -o $@ $<;\
fi
clean:
if [ -f opendd ];then rm -f opendd; fi