ports/81938: [maintainer-update] net/bsflite

Emanuel Haupt ehaupt at critical.ch
Mon Jun 6 07:30:03 UTC 2005


>Number:         81938
>Category:       ports
>Synopsis:       [maintainer-update] net/bsflite
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 06 07:30:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Emanuel Haupt
>Release:        FreeBSD 4.11-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD admin.critical.ch 4.11-RELEASE-p2 FreeBSD 4.11-RELEASE-p2 #0: Wed Apr 6 16:53:59 CEST 2005 root at admin.critical.ch:/usr/obj/usr/src-release/src/sys/GENERIC i386


	
>Description:
[maintainer-update] net/bsflite

- implement an OSCAR_PORT knob
- make portlint happy (name of patchfile)

>How-To-Repeat:
	
>Fix:

	

--- bsflite.patch begins here ---
diff -uNr bsflite.orig/Makefile bsflite/Makefile
--- bsflite.orig/Makefile	Mon Jun  6 03:13:30 2005
+++ bsflite/Makefile	Mon Jun  6 09:13:56 2005
@@ -14,6 +14,27 @@
 MAINTAINER=	ehaupt at critical.ch
 COMMENT=	A lightweight command line AIM client
 
+USE_REINPLACE=	yes
+
+OSCAR_PORT?=	5190
+
+.include <bsd.port.pre.mk>
+
+.if ${OSCAR_PORT} == "5190"
+pre-everything::
+	@${ECHO_MSG} ""
+	@${ECHO_MSG} "Note:"
+	@${ECHO_MSG} "If you're behind a firewall you might want to set OSCAR_PORT"
+	@${ECHO_MSG} "to another port than ${OSCAR_PORT}."
+	@${ECHO_MSG} ""
+.endif
+
+.if ${OSCAR_PORT} != 5190
+post-patch:
+	@${REINPLACE_CMD} -e 's|^\(#define OSCAR_PORT\) 5190|\1 ${OSCAR_PORT}|' \
+		${WRKSRC}/imcomm/imcomm.h
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/bsflite ${PREFIX}/bin
 	${MKDIR} ${EXAMPLESDIR}
@@ -26,4 +47,4 @@
 .endfor
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -uNr bsflite.orig/files/patch-imcomm::Makefile bsflite/files/patch-imcomm::Makefile
--- bsflite.orig/files/patch-imcomm::Makefile	Mon Jun  6 03:13:30 2005
+++ bsflite/files/patch-imcomm::Makefile	Thu Jan  1 01:00:00 1970
@@ -1,18 +0,0 @@
---- imcomm/Makefile.orig	Mon Jun  6 02:49:47 2005
-+++ imcomm/Makefile	Mon Jun  6 02:50:17 2005
-@@ -1,15 +1,11 @@
- EXEC=test
- #AR=i386-pc-msdosdjgpp-ar
- #AR=mingw32-ar
--AR=ar
- #RANLIB=i386-pc-msdosdjgpp-ranlib
- #RANLIB=mingw32-ranlib
--RANLIB=ranlib
- LIB=libimcomm.a
- #CC=i386-pc-msdosdjgpp-gcc
- #CC=mingw32-gcc
--CC=gcc
--CFLAGS=-O
- RM=rm -f
- #CFLAGS+=-I/usr/local/djgpp/watt/inc
- #
diff -uNr bsflite.orig/files/patch-imcomm_Makefile bsflite/files/patch-imcomm_Makefile
--- bsflite.orig/files/patch-imcomm_Makefile	Thu Jan  1 01:00:00 1970
+++ bsflite/files/patch-imcomm_Makefile	Mon Jun  6 03:13:30 2005
@@ -0,0 +1,18 @@
+--- imcomm/Makefile.orig	Mon Jun  6 02:49:47 2005
++++ imcomm/Makefile	Mon Jun  6 02:50:17 2005
+@@ -1,15 +1,11 @@
+ EXEC=test
+ #AR=i386-pc-msdosdjgpp-ar
+ #AR=mingw32-ar
+-AR=ar
+ #RANLIB=i386-pc-msdosdjgpp-ranlib
+ #RANLIB=mingw32-ranlib
+-RANLIB=ranlib
+ LIB=libimcomm.a
+ #CC=i386-pc-msdosdjgpp-gcc
+ #CC=mingw32-gcc
+-CC=gcc
+-CFLAGS=-O
+ RM=rm -f
+ #CFLAGS+=-I/usr/local/djgpp/watt/inc
+ #
--- bsflite.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list