mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Convert mysql-client.sh to rcNG.
This commit is contained in:
parent
707b085ac0
commit
3f7751a86f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=153339
8 changed files with 12 additions and 46 deletions
|
@ -6,6 +6,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= mysql
|
PORTNAME= mysql
|
||||||
|
PORTREVISION= 2
|
||||||
PKGNAMESUFFIX= -client
|
PKGNAMESUFFIX= -client
|
||||||
|
|
||||||
COMMENT= Multithreaded SQL database (client)
|
COMMENT= Multithreaded SQL database (client)
|
||||||
|
|
|
@ -20,10 +20,6 @@ SLAVEDIRS= databases/mysql323-client
|
||||||
USE_AUTOTOOLS= libtool:15
|
USE_AUTOTOOLS= libtool:15
|
||||||
USE_REINPLACE= yes
|
USE_REINPLACE= yes
|
||||||
|
|
||||||
.if ${PKGNAMESUFFIX} == "-server"
|
|
||||||
USE_RC_SUBR= mysql-server.sh
|
|
||||||
.endif
|
|
||||||
|
|
||||||
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||||
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
|
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
|
||||||
--without-debug \
|
--without-debug \
|
||||||
|
@ -96,6 +92,8 @@ LATEST_LINK= mysql323-server
|
||||||
|
|
||||||
CONFLICTS= mysql-server-4.* mysql-server-5.*
|
CONFLICTS= mysql-server-4.* mysql-server-5.*
|
||||||
|
|
||||||
|
USE_RC_SUBR= mysql-server.sh
|
||||||
|
|
||||||
PLIST_SUB= VER=${DISTVERSION}
|
PLIST_SUB= VER=${DISTVERSION}
|
||||||
|
|
||||||
MAN1= isamchk.1 isamlog.1 mysqld.1 \
|
MAN1= isamchk.1 isamlog.1 mysqld.1 \
|
||||||
|
@ -158,6 +156,8 @@ MAN1= mysql.1 mysqladmin.1 mysqldump.1 mysqlshow.1
|
||||||
|
|
||||||
INSTALLS_SHLIB= yes
|
INSTALLS_SHLIB= yes
|
||||||
LDCONFIG_DIRS= %%PREFIX%%/lib/mysql
|
LDCONFIG_DIRS= %%PREFIX%%/lib/mysql
|
||||||
|
USE_LDCONFIG= ${PREFIX}/lib/mysql
|
||||||
|
.include "${PORTSDIR}/misc/ldconfig_compat/bsd.ldconfig.mk"
|
||||||
|
|
||||||
CONFIGURE_ARGS+=--without-server
|
CONFIGURE_ARGS+=--without-server
|
||||||
|
|
||||||
|
@ -167,9 +167,7 @@ post-patch:
|
||||||
@${REINPLACE_CMD} -e "s|man_MANS =|man_MANS = ${MAN1}|g" ${WRKSRC}/man/Makefile.in
|
@${REINPLACE_CMD} -e "s|man_MANS =|man_MANS = ${MAN1}|g" ${WRKSRC}/man/Makefile.in
|
||||||
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/mysys/default.c
|
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/mysys/default.c
|
||||||
|
|
||||||
post-install:
|
post-install: install-ldconfig-file
|
||||||
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/000.mysql-client.sh
|
|
||||||
@${CHMOD} 750 ${PREFIX}/etc/rc.d/000.mysql-client.sh
|
|
||||||
|
|
||||||
.else
|
.else
|
||||||
# MySQL-Scripts part
|
# MySQL-Scripts part
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
start)
|
|
||||||
/sbin/ldconfig -m %%PREFIX%%/lib/mysql
|
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo ""
|
|
||||||
echo "Usage: `basename $0` { start | stop }"
|
|
||||||
echo ""
|
|
||||||
exit 64
|
|
||||||
;;
|
|
||||||
esac
|
|
|
@ -8,7 +8,6 @@ bin/mysqldump
|
||||||
bin/mysqlimport
|
bin/mysqlimport
|
||||||
bin/mysqlshow
|
bin/mysqlshow
|
||||||
bin/mysqltest
|
bin/mysqltest
|
||||||
etc/rc.d/000.mysql-client.sh
|
|
||||||
include/mysql/dbug.h
|
include/mysql/dbug.h
|
||||||
include/mysql/errmsg.h
|
include/mysql/errmsg.h
|
||||||
include/mysql/m_ctype.h
|
include/mysql/m_ctype.h
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= mysql
|
PORTNAME= mysql
|
||||||
|
PORTREVISION= 1
|
||||||
PKGNAMESUFFIX= -client
|
PKGNAMESUFFIX= -client
|
||||||
|
|
||||||
COMMENT= Multithreaded SQL database (client)
|
COMMENT= Multithreaded SQL database (client)
|
||||||
|
|
|
@ -20,10 +20,6 @@ SLAVEDIRS= databases/mysql40-client
|
||||||
USE_AUTOTOOLS= libtool:15
|
USE_AUTOTOOLS= libtool:15
|
||||||
USE_REINPLACE= yes
|
USE_REINPLACE= yes
|
||||||
|
|
||||||
.if ${PKGNAMESUFFIX} == "-server"
|
|
||||||
USE_RC_SUBR= mysql-server.sh
|
|
||||||
.endif
|
|
||||||
|
|
||||||
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||||
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
|
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
|
||||||
--without-debug \
|
--without-debug \
|
||||||
|
@ -104,6 +100,8 @@ LATEST_LINK= mysql40-server
|
||||||
|
|
||||||
CONFLICTS= mysql-server-3.* mysql-server-4.[1-9].* mysql-server-5.*
|
CONFLICTS= mysql-server-3.* mysql-server-4.[1-9].* mysql-server-5.*
|
||||||
|
|
||||||
|
USE_RC_SUBR= mysql-server.sh
|
||||||
|
|
||||||
MAN1= isamchk.1 isamlog.1 mysqld.1 \
|
MAN1= isamchk.1 isamlog.1 mysqld.1 \
|
||||||
mysqld_safe.1 perror.1 replace.1
|
mysqld_safe.1 perror.1 replace.1
|
||||||
|
|
||||||
|
@ -152,6 +150,8 @@ MAN1= mysql.1 mysqladmin.1 mysqldump.1 mysqlshow.1
|
||||||
|
|
||||||
INSTALLS_SHLIB= yes
|
INSTALLS_SHLIB= yes
|
||||||
LDCONFIG_DIRS= %%PREFIX%%/lib/mysql
|
LDCONFIG_DIRS= %%PREFIX%%/lib/mysql
|
||||||
|
USE_LDCONFIG= ${PREFIX}/lib/mysql
|
||||||
|
.include "${PORTSDIR}/misc/ldconfig_compat/bsd.ldconfig.mk"
|
||||||
|
|
||||||
CONFIGURE_ARGS+=--without-server
|
CONFIGURE_ARGS+=--without-server
|
||||||
|
|
||||||
|
@ -164,9 +164,7 @@ post-patch:
|
||||||
@${REINPLACE_CMD} -e "s|PTHREAD_SCOPE_SYSTEM|PTHREAD_SCOPE_PROCESS|g" ${WRKSRC}/tools/mysqlmanager.c
|
@${REINPLACE_CMD} -e "s|PTHREAD_SCOPE_SYSTEM|PTHREAD_SCOPE_PROCESS|g" ${WRKSRC}/tools/mysqlmanager.c
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install: install-ldconfig-file
|
||||||
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/000.mysql-client.sh
|
|
||||||
@${CHMOD} 750 ${PREFIX}/etc/rc.d/000.mysql-client.sh
|
|
||||||
|
|
||||||
.else
|
.else
|
||||||
# MySQL-Scripts part
|
# MySQL-Scripts part
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
start)
|
|
||||||
/sbin/ldconfig -m %%PREFIX%%/lib/mysql
|
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo ""
|
|
||||||
echo "Usage: `basename $0` { start | stop }"
|
|
||||||
echo ""
|
|
||||||
exit 64
|
|
||||||
;;
|
|
||||||
esac
|
|
|
@ -11,7 +11,6 @@ bin/mysqlmanager-pwgen
|
||||||
bin/mysqlmanagerc
|
bin/mysqlmanagerc
|
||||||
bin/mysqlshow
|
bin/mysqlshow
|
||||||
bin/mysqltest
|
bin/mysqltest
|
||||||
etc/rc.d/000.mysql-client.sh
|
|
||||||
include/mysql/errmsg.h
|
include/mysql/errmsg.h
|
||||||
include/mysql/m_ctype.h
|
include/mysql/m_ctype.h
|
||||||
include/mysql/m_string.h
|
include/mysql/m_string.h
|
||||||
|
|
Loading…
Add table
Reference in a new issue