diff options
Diffstat (limited to 'net/vncreflector')
-rw-r--r-- | net/vncreflector/Makefile | 10 | ||||
-rw-r--r-- | net/vncreflector/files/patch-Makefile | 28 | ||||
-rw-r--r-- | net/vncreflector/files/vncreflector.sh.in | 7 |
3 files changed, 34 insertions, 11 deletions
diff --git a/net/vncreflector/Makefile b/net/vncreflector/Makefile index 6f7b07290900..0e3544b16d8f 100644 --- a/net/vncreflector/Makefile +++ b/net/vncreflector/Makefile @@ -7,6 +7,7 @@ PORTNAME= vncreflector PORTVERSION= 1.2.4 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR=vnc-reflector @@ -17,19 +18,20 @@ COMMENT= Multi-client VNC proxy server LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg -USE_RC_SUBR= YES +USE_RC_SUBR= vncreflector.sh +USE_REINPLACE= YES +USE_GCC= 3.3+ ALL_TARGET= default WRKSRC= ${WRKDIR}/vnc_reflector -SUB_FILES= vncreflector.sh -SUB_LIST= RC_SUBR=${RC_SUBR} +post-patch: + ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/Makefile do-install: @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin @${MKDIR} -m0750 ${PREFIX}/etc/${PORTNAME} @${CHOWN} root:wheel ${PREFIX}/etc/${PORTNAME} - @${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/etc/rc.d .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} diff --git a/net/vncreflector/files/patch-Makefile b/net/vncreflector/files/patch-Makefile index afe153239c62..7daa0d6e13af 100644 --- a/net/vncreflector/files/patch-Makefile +++ b/net/vncreflector/files/patch-Makefile @@ -3,12 +3,34 @@ $FreeBSD$ --- Makefile.orig +++ Makefile -@@ -14,7 +14,7 @@ +@@ -14,10 +14,10 @@ # # Variables you might want to edit: CFLAGS, CONFFLAGS -IFLAGS = -I. -+IFLAGS = -I/usr/local/include ++IFLAGS = -I%%LOCALBASE%%/include # Production - CFLAGS = -O2 $(IFLAGS) +-CFLAGS = -O2 $(IFLAGS) ++#CFLAGS = -O2 $(IFLAGS) + # Debug (strict) + #CFLAGS = -g -pedantic -Wall $(IFLAGS) + # Debug (profiling) +@@ -50,7 +50,7 @@ + default: $(PROG) + + $(PROG): $(OBJS) +- $(CC) $(CFLAGS) -o $(PROG) $(OBJS) $(LDFLAGS) ++ $(CC) $(CFLAGS) $(IFLAGS) -o $(PROG) $(OBJS) $(LDFLAGS) + + clean: + rm -f $(OBJS) *core* ./*~ ./*.bak $(PROG) +@@ -59,7 +59,7 @@ + $(MAKEDEPEND) $(MAKEDEPFLAGS) -I. $(SRCS) 2> /dev/null + + .c.o: +- $(CC) $(CFLAGS) $(CONFFLAGS) -c $< ++ $(CC) $(CFLAGS) $(IFLAGS) $(CONFFLAGS) -c $< + + + # DO NOT DELETE diff --git a/net/vncreflector/files/vncreflector.sh.in b/net/vncreflector/files/vncreflector.sh.in index e6e69aa7d128..855f813dd38a 100644 --- a/net/vncreflector/files/vncreflector.sh.in +++ b/net/vncreflector/files/vncreflector.sh.in @@ -6,8 +6,7 @@ # BEFORE: LOGIN # KEYWORD: FreeBSD shutdown -_prefix="%%PREFIX%%" -_etcdir="${_prefix}/etc/vncreflector" +_etcdir="%%PREFIX%%/etc/vncreflector" # Define these vncreflector_* variables in one of these files: # /etc/rc.conf @@ -28,13 +27,13 @@ vncreflector_activefile=${vncreflector_logfile-"/var/log/vncreflector.log"} vncreflector_addr=${vncreflector_addr-""} #vncreflector_addr_5999= -. /etc/rc.subr +. %%RC_SUBR%% name="vncreflector" rcvar=`set_rcvar` start_cmd="vncreflector_start" stop_cmd="vncreflector_stop" -command=${_prefix}/bin/${name} +command="%%PREFIX%%/bin/${name}" # Disconnect from host, reread host file, reconnect. sig_reload=USR2 |