Bug 149880

Summary: [patch] lang/rexx-regina: update to version 3.5 and use rc.subr
Product: Ports & Packages Reporter: Boris Samorodov <bsam>
Component: Individual Port(s)Assignee: Boris Samorodov <bsam>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Boris Samorodov freebsd_committer freebsd_triage 2010-08-22 17:00:11 UTC
	A new version of lang/rexx-regina is released.

Fix: . update to version 3.5;
	. use USE_RC_SUBR.



-- 
WBR, bsam--7pQ0iw6n2v0arGFt4X7dIxX0F0pTgMcl7QbUG8N6M6lJ4st5
Content-Type: text/plain; name="rexx-regina.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="rexx-regina.diff"

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/lang/rexx-regina/Makefile,v
retrieving revision 1.9
diff -u -r1.9 Makefile
--- Makefile	22 Nov 2009 19:49:41 -0000	1.9
+++ Makefile	22 Aug 2010 15:34:13 -0000
@@ -7,8 +7,7 @@
 #
 
 PORTNAME=	regina
-PORTVERSION=	3.3
-PORTREVISION=	1
+PORTVERSION=	3.5
 CATEGORIES=	lang
 MASTER_SITES=	SF/${PORTNAME}-rexx/${PORTNAME}-rexx/${PORTVERSION}
 PKGNAMEPREFIX=	rexx-
@@ -19,12 +18,12 @@
 
 CONFLICTS=	rexx-imc-* oorexx-[0-9]*
 
-WRKSRC=		${WRKDIR}/Regina-${PORTVERSION}
 USE_OPENSSL=	yes
 GNU_CONFIGURE=	yes
 USE_GMAKE=	yes
 USE_LDCONFIG=	yes
 MAKE_JOBS_UNSAFE=	yes
+USE_RC_SUBR=	rxstack
 
 MAN1=	regina.1
 
@@ -34,7 +33,4 @@
 post-configure:
 	@${REINPLACE_CMD} -e "s|-xchar=unsigned||g" ${WRKSRC}/Makefile
 
-post-install:
-	@${INSTALL_SCRIPT} ${FILESDIR}/rxstack.sh ${PREFIX}/etc/rc.d
-
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/lang/rexx-regina/distinfo,v
retrieving revision 1.4
diff -u -r1.4 distinfo
--- distinfo	22 Jan 2006 12:42:21 -0000	1.4
+++ distinfo	22 Aug 2010 15:34:13 -0000
@@ -1,3 +1,3 @@
-MD5 (Regina-REXX-3.3.tar.gz) = bdb85f57cbe3e7f9b45aea329cd7752e
-SHA256 (Regina-REXX-3.3.tar.gz) = 3bce9da3631dbf073b8373359fb8a2924d7b511995e7dfd34deca8c6b5d0582c
-SIZE (Regina-REXX-3.3.tar.gz) = 940352
+MD5 (Regina-REXX-3.5.tar.gz) = 914e223d882f0e4a35f4efda0a75920d
+SHA256 (Regina-REXX-3.5.tar.gz) = c895fda12bb8c07aaac99ffab69444400d9a63a747c1a608d13d3ab8a899003e
+SIZE (Regina-REXX-3.5.tar.gz) = 1139805
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/lang/rexx-regina/pkg-plist,v
retrieving revision 1.2
diff -u -r1.2 pkg-plist
--- pkg-plist	20 Feb 2005 00:03:02 -0000	1.2
+++ pkg-plist	22 Aug 2010 15:34:13 -0000
@@ -3,22 +3,26 @@
 bin/rexx
 bin/rxqueue
 bin/rxstack
-etc/rc.d/rxstack.sh
 include/rexxsaa.h
 lib/libregina.a
 lib/libregina.so
-lib/libtest1.so
-lib/libtest2.so
+lib/libregutil.so
+lib/librxtest1.so
+lib/librxtest2.so
 %%DATADIR%%/animal.rexx
 %%DATADIR%%/block.rexx
 %%DATADIR%%/dateconv.rexx
 %%DATADIR%%/de.mtb
 %%DATADIR%%/dynfunc.rexx
+%%DATADIR%%/en.mtb
 %%DATADIR%%/es.mtb
 %%DATADIR%%/newstr.rexx
 %%DATADIR%%/no.mtb
 %%DATADIR%%/pl.mtb
 %%DATADIR%%/pt.mtb
+%%DATADIR%%/regutil.rexx
 %%DATADIR%%/rexxcps.rexx
+%%DATADIR%%/sv.mtb
 %%DATADIR%%/timeconv.rexx
+%%DATADIR%%/tr.mtb
 @dirrm %%DATADIR%%
Index: files/patch-Makefile.in
===================================================================
RCS file: /home/pcvs/ports/lang/rexx-regina/files/patch-Makefile.in,v
retrieving revision 1.1
diff -u -r1.1 patch-Makefile.in
--- files/patch-Makefile.in	9 Nov 2003 16:20:52 -0000	1.1
+++ files/patch-Makefile.in	22 Aug 2010 15:34:13 -0000
@@ -1,11 +1,10 @@
---- Makefile.in.orig	Sun Nov  9 23:49:49 2003
-+++ Makefile.in	Sun Nov  9 23:50:39 2003
-@@ -849,7 +849,7 @@
- 	$(INSTALL) -m 755 -c ./rxqueue$(EXE) $(bindir)/rxqueue$(EXE)
- 	$(INSTALL) -m 755 -c ./rxstack$(EXE) $(bindir)/rxstack$(EXE)
- 	$(INSTALL) -m 755 -c ./regina-config $(bindir)/regina-config
--	-$(INSTALL) -m 755 -c ./rxstack.init.d $(sysconfdir)/rc.d/init.d/rxstack
-+#	-$(INSTALL) -m 755 -c ./rxstack.init.d $(sysconfdir)/rc.d/init.d/rxstack
++++ Makefile.in	2010-08-22 12:54:40.000000000 +0400
+@@ -990,7 +990,7 @@
+ 	$(INSTALL) -m 755 -c ./rxqueue$(binarybitprefix)$(EXE) $(DESTDIR)$(bindir)/rxqueue$(binarybitprefix)$(EXE)
+ 	$(INSTALL) -m 755 -c ./rxstack$(binarybitprefix)$(EXE) $(DESTDIR)$(bindir)/rxstack$(binarybitprefix)$(EXE)
+ 	$(INSTALL) -m 755 -c ./regina-config $(DESTDIR)$(bindir)/regina-config
+-	-$(INSTALL) -m 755 -c ./rxstack.init.d $(DESTDIR)$(sysconfdir)/rc.d/init.d/rxstack
++	#-$(INSTALL) -m 755 -c ./rxstack.init.d $(DESTDIR)$(sysconfdir)/rc.d/init.d/rxstack
  	@echo "The system startup/shutdown script; rxstack, may have been installed into $(sysconfdir)/rc.d/init.d"
  	@echo "You need to create the appropriate links to this script to start and stop rxstack automatically."
- 	-$(INSTALL) -m 755 -c ./$(LIBPRE)$(LIBFILE)$(LIBPST) $(libdir)/$(LIBPRE)$(LIBFILE)$(LIBPST)
+ 	-$(INSTALL) -m 755 -c ./$(LIBPRE)$(LIBFILE)$(LIBPST) $(DESTDIR)$(libdir)/$(LIBPRE)$(LIBFILE)$(LIBPST)
Index: files/rxstack.in
===================================================================
RCS file: files/rxstack.in
diff -N files/rxstack.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/rxstack.in	22 Aug 2010 15:34:13 -0000
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: rxstack
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# rxstack_enable (bool):   Set to NO by default.
+#               Set it to YES to enable rxstack.
+# rxstack_flags (str):   Set to "-d" by default.
+#
+
+. /etc/rc.subr
+
+name="rxstack"
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/bin/${name}
+
+load_rc_config $name
+
+: ${rxstack_enable="NO"}
+: ${rxstack_flags="-d"}
+
+run_rc_command "$1"
Index: files/rxstack.sh
===================================================================
RCS file: files/rxstack.sh
diff -N files/rxstack.sh
--- files/rxstack.sh	9 Nov 2003 16:20:52 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-case "$1" in
-start)
-	[ -x /usr/local/bin/rxstack ] && /usr/local/bin/rxstack -d && \
-		echo -n "Starting Regina Stack"
-	;;
-stop)
-	killall rxstack && echo -n "Shutting down Regina Stack"
-	;;
-esac
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-08-22 17:00:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bsam

Submitter has GNATS access (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2010-08-22 17:00:24 UTC
Maintainer of lang/rexx-regina,

Please note that PR ports/149880 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/149880

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2010-08-22 17:00:28 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 dfilter service freebsd_committer freebsd_triage 2010-10-15 16:08:19 UTC
bsam        2010-10-15 15:08:13 UTC

  FreeBSD ports repository

  Modified files:
    lang/rexx-regina     Makefile distinfo pkg-plist 
    lang/rexx-regina/files patch-Makefile.in rxstack.sh 
  Added files:
    lang/rexx-regina/files rxstack.in 
  Log:
  . update to version 3.5;
  . use USE_RC_SUBR.
  
  PR:             ports/149880
  Submitted by:   bsam (me)
  Approved by:    maintainer timeout (7+ weeks)
  
  Revision  Changes    Path
  1.10      +2 -6      ports/lang/rexx-regina/Makefile
  1.5       +3 -3      ports/lang/rexx-regina/distinfo
  1.2       +8 -9      ports/lang/rexx-regina/files/patch-Makefile.in
  1.1       +29 -0     ports/lang/rexx-regina/files/rxstack.in (new)
  1.2       +0 -11     ports/lang/rexx-regina/files/rxstack.sh
  1.3       +7 -3      ports/lang/rexx-regina/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Boris Samorodov freebsd_committer freebsd_triage 2010-10-15 16:18:57 UTC
State Changed
From-To: feedback->closed

Committed, thanks! ;-)