Commit 13c3a312 authored by Mike Hibler's avatar Mike Hibler

Add a new port for the old version of p5-DBD-mysql50 that still has Mysql.pm.

This will stay until we get rid of the old hacky "Mysql" interface usage.

THIS HAS NOT BEEN TESTED!
parent 16941cb4
......@@ -58,6 +58,18 @@ MAINTAINER= ricci@cs.utah.edu
#
.MAKEFLAGS+= -DBATCH
#
# XXX not really a build dependency, but needs to get installed before
# any attempt to install mysql50-* ports
#
.if ${PORTVERSION} == "2.1"
BUILD_DEPENDS= \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/misc/p5-DBD-mysql50-old
.else
BUILD_DEPENDS= \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql50
.endif
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd \
lthread.[23]:${PORTSDIR}/devel/linuxthreads \
mhash.2:${PORTSDIR}/security/mhash \
......@@ -112,11 +124,9 @@ RUN_DEPENDS= \
mysqlhotcopy:${PORTSDIR}/databases/mysql50-scripts
.if ${PORTVERSION} == "2.1"
RUN_DEPENDS+= \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql50
.else
RUN_DEPENDS+= \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql50
# not sure why this is just needed for 6.3
RUN_DEPENDS+= \
${X11BASE}/libdata/xorg/libraries:${PORTSDIR}/x11/xorg-libraries
.endif
.if ${OSMAJOR} >= 6
......
......@@ -113,6 +113,8 @@ RUN_DEPENDS+= smbd:${PORTSDIR}/net/samba3
.endif
.if ${PORTVERSION} == "2.1"
# not sure why this is just needed for 6.3
RUN_DEPENDS+= ${X11BASE}/libdata/xorg/libraries:${PORTSDIR}/x11/xorg-libraries
# not sure why we don't build this for 6.0-6.2...
RUN_DEPENDS+= smbd:${PORTSDIR}/net/samba3
RUN_DEPENDS+= \
......
# New ports collection makefile for: DBD::mysql
# Date created: 27 Nov 2001
# Whom: Sergey Skvortsov <skv@FreeBSD.org>
#
# $FreeBSD: ports/databases/p5-DBD-mysql/Makefile,v 1.57 2005/07/22 10:11:46 skv Exp $
#
#
# From databases/p5-DBD-mysql50
#
PKGNAMESUFFIX= 50
COMMENT= MySQL 5.0 driver for the Perl5 Database Interface (DBI)
CONFLICTS= p5-Mysql-modules-[0-9]* p5-DBD-mysql-[0-9]* p5-DBD-mysql4[0-9]-[0-9]* p5-DBD-mysql5[1-9]-[0-9]*
WANT_MYSQL_VER= 50
#
# From databases/p5-DBD-mysql
#
PORTNAME= DBD-mysql
PORTVERSION= 3.0002
PORTREVISION= 0
CATEGORIES= databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= DBD
PKGNAMEPREFIX= p5-
MAINTAINER= skv@FreeBSD.org
COMMENT?= MySQL driver for the Perl5 Database Interface (DBI)
CONFLICTS?= p5-Mysql-modules-[0-9]* p5-DBD-mysql4[0-9]-[0-9]* p5-DBD-mysql5[0-9]-[0-9]*
USE_MYSQL= yes
PERL_CONFIGURE= yes
MAN3= Bundle::DBD::mysql.3 DBD::mysql.3 DBD::mysql::INSTALL.3 Mysql.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
.else
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
.endif
post-patch:
.if ${PERL_LEVEL} < 500600
@${PERL} -pi -e 's/(?:use|no) warnings;?//; s/our (%\w+)/use vars qw(\1);\n\1/' \
${WRKSRC}/lib/DBD/mysql/GetInfo.pm
.endif
@${PERL} -pi -e 's/$$/ || MYSQL_VERSION_ID == 50000/ if $$. == 107' \
${WRKSRC}/mysql.xs
.include <bsd.port.post.mk>
MD5 (DBD-mysql-3.0002.tar.gz) = df70ba084c97f5f7c2a997c3de2f0ad0
SHA256 (DBD-mysql-3.0002.tar.gz) = 90f3f767a25b692aa2775bf919886df48fe1146acf1f885a84eeb14909cbf12f
SIZE (DBD-mysql-3.0002.tar.gz) = 130077
DBD::mysql is the Perl5 Database Interface driver for the MySQL
database. In other words: DBD::mysql is an interface between the Perl
programming language and the MySQL programming API that comes with the
MySQL relational database management system. Most functions provided by
this programming API are supported. Some rarely used functions are
missing, mainly because noone ever requested them.
WWW: http://search.cpan.org/dist/DBD-mysql/
%%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD/mysql/.packlist
%%SITE_PERL%%/%%PERL_ARCH%%/Bundle/DBD/mysql.pm
%%SITE_PERL%%/%%PERL_ARCH%%/DBD/mysql.pm
%%SITE_PERL%%/%%PERL_ARCH%%/DBD/mysql/GetInfo.pm
%%SITE_PERL%%/%%PERL_ARCH%%/DBD/mysql/INSTALL.pod
%%SITE_PERL%%/%%PERL_ARCH%%/Mysql.pm
%%SITE_PERL%%/%%PERL_ARCH%%/Mysql/Statement.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD/mysql/mysql.bs
%%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD/mysql/mysql.so
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/DBD/mysql
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Mysql
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD/mysql
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Bundle/DBD
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Bundle
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/DBD
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD
......@@ -7,7 +7,7 @@
PORTSDIR=/usr/ports
PORTSUBDIR=misc
SRCDIR=`dirname $0`
PORTS="elvind emulab-boss emulab-fs emulab-ops libelvin emulab-tftp-hpa p5-GD-old ulsshxmlrpcpp emulab-iperf emulab-php4 emulab-mailman emulab-pubsub emulab-pubsub-elvincompat"
PORTS="elvind emulab-boss emulab-fs emulab-ops libelvin emulab-tftp-hpa p5-GD-old p5-DBD-mysql50-old ulsshxmlrpcpp emulab-iperf emulab-php4 emulab-mailman emulab-pubsub emulab-pubsub-elvincompat"
for PORT in $PORTS
do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment