ports/88673: [maintainer update]: www/rt2 fix hardcoded prefix

Jean Milanez Melo jmelo at freebsdbrasil.com.br
Tue Nov 8 16:50:17 UTC 2005


>Number:         88673
>Category:       ports
>Synopsis:       [maintainer update]: www/rt2 fix hardcoded prefix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 08 16:50:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Jean Milanez Melo
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD capeta.freebsdbrasil.com.br 5.3-STABLE FreeBSD 5.3-STABLE #5: Wed Mar 2 15:03:19 BRT 2005 eksffa at capeta.freebsdbrasil.com.br:/usr/obj/usr/src/sys/CAPETA i386


	
>Description:
	
- Fix hardcoded PREFIX told by Kris.
>How-To-Repeat:
	
>Fix:

	

--- rt2.diff begins here ---
diff -ruN rt2.old/Makefile rt2/Makefile
--- rt2.old/Makefile	Wed Aug 24 06:59:39 2005
+++ rt2/Makefile	Mon Nov  7 18:43:15 2005
@@ -42,9 +42,32 @@
 		${SITE_PERL}/Tie/IxHash.pm:${PORTSDIR}/devel/p5-Tie-IxHash \
 		${SITE_PERL}/CGI/Cookie.pm:${PORTSDIR}/www/p5-CGI.pm
 
+USE_REINPLACE=	yes
+USE_PERL5=	yes
+ALL_TARGETS=	testdeps fixdeps
+
 WRKSRC=		${WRKDIR}/rt-${RT_VERSION}
 RT_VERSION=	${PORTVERSION:C/\./-/g}
+RT_PATH?=	${PREFIX}/rt2
 DB_TYPE?=	mysql
+DB_DBA_PASSWORDD?=
+DB_HOST?=	localhost
+DB_RT_PASS=	rt_pass
+
+MAN3=		RT::Links.3 RT::Watchers.3 RT::Group.3 RT::Keyword.3 \
+		RT::Record.3 RT::ScripConditions.3 RT::Action::Generic.3 \
+		RT::Transaction.3 RT::Interface::Email.3 RT::Link.3 \
+		RT.3 RT::Watcher.3 RT::ObjectKeywords.3 RT::EasySearch.3 \
+		RT::ScripActions.3 RT::Scrip.3 RT::GroupMembers.3 \
+		RT::Action::SendPasswordEmail.3 RT::Transactions.3 \
+		RT::Scrips.3 RT::Action::SendEmail.3 RT::User.3 \
+		RT::ScripCondition.3 RT::Users.3 RT::Ticket.3 \
+		RT::ACE.3 RT::Queue.3 RT::Interface::CLI.3 RT::Tickets.3 \
+		RT::GroupMember.3 RT::Template.3 RT::Templates.3 \
+		RT::Queues.3 RT::Date.3 RT::CurrentUser.3 RT::ScripAction.3 \
+		RT::Keywords.3 RT::ObjectKeyword.3 RT::Attachment.3 \
+		RT::Groups.3 RT::KeywordSelect.3 RT::Condition::Generic.3 \
+		RT::Handle.3 RT::ACL.3 RT::Attachments.3
 
 .include <bsd.port.pre.mk>
 
@@ -59,61 +82,16 @@
 BUILD_DEPENDS+=	${LOCALBASE}/bin/safe_mysqld:${PORTSDIR}/databases/mysql323-server
 .endif
 
-RUN_DEPENDS=	${BUILD_DEPENDS}
-
-USE_REINPLACE=	yes
-USE_PERL5=	yes
+RUN_DEPENDS+=	${BUILD_DEPENDS}
 
-RT_PATH?=	${PREFIX}/rt2
-DB_DBA_PASSWORDD?=
-DB_HOST?=	localhost
-DB_RT_PASS=	rt_pass
+MAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
+MAKE_ENV=	MAN3PREFIX=${MAN3PREFIX}
 
-MAN3=		RT::Links.3 \
-		RT::Watchers.3 \
-		RT::Group.3 \
-		RT::Keyword.3 \
-		RT::Record.3 \
-		RT::ScripConditions.3 \
-		RT::Action::Generic.3 \
-		RT::Transaction.3 \
-		RT::Interface::Email.3 \
-		RT::Link.3 \
-		RT.3 \
-		RT::Watcher.3 \
-		RT::ObjectKeywords.3 \
-		RT::EasySearch.3 \
-		RT::ScripActions.3 \
-		RT::Scrip.3 \
-		RT::GroupMembers.3 \
-		RT::Action::SendPasswordEmail.3 \
-		RT::Transactions.3 \
-		RT::Scrips.3 \
-		RT::Action::SendEmail.3 \
-		RT::User.3 \
-		RT::ScripCondition.3 \
-		RT::Users.3 \
-		RT::Ticket.3 \
-		RT::ACE.3 \
-		RT::Queue.3 \
-		RT::Interface::CLI.3 \
-		RT::Tickets.3 \
-		RT::GroupMember.3 \
-		RT::Template.3 \
-		RT::Templates.3 \
-		RT::Queues.3 \
-		RT::Date.3 \
-		RT::CurrentUser.3 \
-		RT::ScripAction.3 \
-		RT::Keywords.3 \
-		RT::ObjectKeyword.3 \
-		RT::Attachment.3 \
-		RT::Groups.3 \
-		RT::KeywordSelect.3 \
-		RT::Condition::Generic.3 \
-		RT::Handle.3 \
-		RT::ACL.3 \
-		RT::Attachments.3
+.if defined(INSTALL_NEW)
+INSTALL_TARGET=	dropdb install
+.else
+INSTALL_TARGET=	upgrade
+.endif
 
 pre-everything::
 	@${ECHO_MSG} ""
@@ -133,26 +111,16 @@
 	${REINPLACE_CMD} 's,/usr/bin/perl,${PERL},' ${WRKSRC}/${_FILE}
 	${CHMOD} +x ${WRKSRC}/${_FILE}
 .endfor
-
-do-build:
 .for _NAME in RT_PATH DB_DBA_PASSWORD DB_HOST DB_RT_PASS DB_TYPE
 	@${REINPLACE_CMD} "s!%%${_NAME}%%!${${_NAME}}!g" ${WRKSRC}/Makefile
 .endfor
-	@cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile testdeps
-	@cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile fixdeps
 
-do-install:
+pre-install:
 	@${MKDIR} /var/log/rt2
-.if defined(INSTALL_NEW)
-	- at cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile dropdb
-	@cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile install
-.else
-	@cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile upgrade
-.endif
-	@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/rt2/README
-	@${CHOWN} -R www /var/log/rt2
 
 post-install:
+	@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/rt2/README
+	@${CHOWN} -R www /var/log/rt2
 	@${SED} s!%%PREFIX%%!${PREFIX}!g ${PKGMESSAGE}
 
 .include <bsd.port.post.mk>
diff -ruN rt2.old/files/patch-Makefile rt2/files/patch-Makefile
--- rt2.old/files/patch-Makefile	Wed Aug 24 06:59:40 2005
+++ rt2/files/patch-Makefile	Mon Nov  7 18:43:15 2005
@@ -23,7 +23,7 @@
  RT_CONFIG_PATH		=	$(RT_ETC_PATH)
  RT_BIN_PATH		=	$(RT_PATH)/bin
 -RT_MAN_PATH		=	$(RT_PATH)/man
-+RT_MAN_PATH		=	/usr/local/man
++RT_MAN_PATH		=	$(MAN3PREFIX)/man
  MASON_HTML_PATH		=	$(RT_PATH)/WebRT/html
  
  
@@ -48,7 +48,7 @@
  # "/usr/local/mysql/bin/mysql", $DB_HOME should be "/usr/local/mysql"
  
 -DB_HOME			= /usr
-+DB_HOME			=	/usr/local
++DB_HOME			=	$(LOCALBASE)
  
  # Set DBA to the name of a unix account with the proper permissions and 
  # environment to run your commandline SQL tools
--- rt2.diff ends here ---


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



More information about the freebsd-ports-bugs mailing list