mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Given vncreflector a chance on 4.x. First, require gcc-3.3 or newer as
2.95.4 appears to generate bad code (none of the debugging tools I tried could even come up with a decent stack trace when it died.) Second, fix the RC script so it can find rc.subr.
This commit is contained in:
parent
3a42c47a77
commit
882b28e78e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133624
3 changed files with 34 additions and 11 deletions
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue