ports/161613: Update port: databases/dbf2mysql

KATO Tsuguru tkato432 at yahoo.com
Fri Oct 14 18:50:16 UTC 2011


>Number:         161613
>Category:       ports
>Synopsis:       Update port: databases/dbf2mysql
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 14 18:50:15 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Fix MASTER_SITES
- Support LOCALBASE peoperly
- Support PLIST_FILES
- Strip binaries

Remove file:
pkg-plist

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/databases/dbf2mysql/Makefile databases/dbf2mysql/Makefile
--- /usr/ports/databases/dbf2mysql/Makefile	2011-03-20 02:24:42.000000000 +0900
+++ databases/dbf2mysql/Makefile	2011-09-18 02:05:50.000000000 +0900
@@ -7,13 +7,9 @@
 
 PORTNAME=	dbf2mysql
 PORTVERSION=	1.14
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	databases
-MASTER_SITES=	ftp://ftp.ntu.edu.tw/pub/MySQL/Downloads/Contrib/Old-Versions/ \
-		ftp://ftp.ip.pt/pub/mysql/Downloads/Contrib/Old-Versions/ \
-		ftp://ftp.chu.edu.tw/Mirrors/www.mysql.com/Downloads/Contrib/ \
-		ftp://ftp.ps.pl/dsk0/ftp.mysql.com/Downloads/Contrib/Old-Versions/ \
-		ftp://mir1.ovh.net/ftp.mysql.com/Downloads/Contrib/Old-Versions/
+MASTER_SITES=	MYSQL/Contrib/Old-Versions
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Programs to convert .dbf files to MySQL tables and vice versa
@@ -21,12 +17,13 @@
 USE_MYSQL=	yes
 
 PORTDOCS=	README
+PLIST_FILES=	bin/dbf2mysql bin/mysql2dbf
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/dbf2mysql ${PREFIX}/bin
-	${INSTALL_SCRIPT} ${WRKSRC}/mysql2dbf ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/dbf2mysql ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/mysql2dbf ${PREFIX}/bin
 .if !defined(NOPORTDOCS)
-	-${MKDIR} ${DOCSDIR}
+	@${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
 .endif
 
diff -urN /usr/ports/databases/dbf2mysql/files/patch-aa databases/dbf2mysql/files/patch-aa
--- /usr/ports/databases/dbf2mysql/files/patch-aa	2001-02-08 03:26:11.000000000 +0900
+++ databases/dbf2mysql/files/patch-aa	2011-09-18 02:05:16.000000000 +0900
@@ -28,8 +28,8 @@
  # Set this to your MySQL installation-path
 -MYSQLINC=-I/usr/include/mysql
 -MYSQLLIB=-L/usr/lib/mysql
-+MYSQLINC=-I${PREFIX}/include/mysql
-+MYSQLLIB=-L${PREFIX}/lib/mysql
++MYSQLINC=-I${LOCALBASE}/include/mysql
++MYSQLLIB=-L${LOCALBASE}/lib/mysql
  
  # Set this to where you want the binary (no man-page yet, don't know
  # how to write them)
diff -urN /usr/ports/databases/dbf2mysql/pkg-plist databases/dbf2mysql/pkg-plist
--- /usr/ports/databases/dbf2mysql/pkg-plist	1999-10-04 07:04:20.000000000 +0900
+++ databases/dbf2mysql/pkg-plist	1970-01-01 09:00:00.000000000 +0900
@@ -1,2 +0,0 @@
-bin/dbf2mysql
-bin/mysql2dbf
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list