Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 1999 00:08:46 +0900
From:      Junseon Oh <hollywar@holywar.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/12260: [new port] ko-mysql
Message-ID:  <37690F7E.ACA4813D@mail.holywar.net>

next in thread | raw e-mail | index | archive | help

>Number:         12260
>Category:       ports
>Synopsis:       new port: korean/mysql
>Confidential:   yes
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 17 08:10:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Oh Junseon
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
HolyNet
>Environment:

        <Relevant environment information (multiple lines)>

>Description:

        <Precise description of the problem (multiple lines)>

>How-To-Repeat:

        <Code/input/activities to reproduce the problem (multiple
lines)>

>Fix:

        <How to correct or work around the problem, if known (multiple
lines)>



--------------2C2D3906224783A4FF3B950C
Content-Type: text/plain; charset=EUC-KR;
 name="ko-mysql-port"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="ko-mysql-port"

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mysql
#	mysql/files
#	mysql/files/md5
#	mysql/pkg
#	mysql/pkg/COMMENT
#	mysql/pkg/DESCR
#	mysql/pkg/PLIST
#	mysql/patches
#	mysql/patches/patch-ab
#	mysql/patches/patch-ad
#	mysql/patches/patch-ae
#	mysql/patches/patch-af
#	mysql/patches/patch-ag
#	mysql/patches/patch-ah
#	mysql/patches/patch-ac
#	mysql/patches/patch-aa
#	mysql/scripts
#	mysql/scripts/check_old_version
#	mysql/Makefile
#
echo c - mysql
mkdir -p mysql > /dev/null 2>&1
echo c - mysql/files
mkdir -p mysql/files > /dev/null 2>&1
echo x - mysql/files/md5
sed 's/^X//' >mysql/files/md5 << 'END-of-mysql/files/md5'
XMD5 (mysql-3.22.23b.tar.gz) = 453c1cebc9897c71c6cd70f833731888
END-of-mysql/files/md5
echo c - mysql/pkg
mkdir -p mysql/pkg > /dev/null 2>&1
echo x - mysql/pkg/COMMENT
sed 's/^X//' >mysql/pkg/COMMENT << 'END-of-mysql/pkg/COMMENT'
Xa multithreaded SQL database supported korean.
END-of-mysql/pkg/COMMENT
echo x - mysql/pkg/DESCR
sed 's/^X//' >mysql/pkg/DESCR << 'END-of-mysql/pkg/DESCR'
Xmysql-3.22.23b
X--------------
X
XmySQL is a multithreaded (using MIT pthreads) SQL database with a command
Xsyntax very similar to mSQL. For more information see http://www.tcx.se
X
XIt supported euc-kr (Korean). it also avaiable "order by(sort)" for euc-kr and 
Xshown euc-kr error message.
X
XNote: This port does *not* build the perl5 module. To do so, refer to the
Xfile ${WRKSRC}/INSTALL-SOURCE, in particular, the notes on FreeBSD systems.
X
XOh Junseon (hollywar@mail.holywar.net)
END-of-mysql/pkg/DESCR
echo x - mysql/pkg/PLIST
sed 's/^X//' >mysql/pkg/PLIST << 'END-of-mysql/pkg/PLIST'
Xbin/comp_err
Xbin/isamchk
Xbin/isamlog
Xbin/msql2mysql
Xbin/mysql
Xbin/mysql_fix_privilege_tables
Xbin/mysql_install_db
Xbin/mysql_setpermission
Xbin/mysql_zap
Xbin/mysqlaccess
Xbin/mysqladmin
Xbin/mysqlbug
Xbin/mysqldump
Xbin/mysqlimport
Xbin/mysqlshow
Xbin/perror
Xbin/replace
Xbin/resolveip
Xbin/safe_mysqld
Xetc/rc.d/mysql.sh
Xinclude/mysql/dbug.h
Xinclude/mysql/errmsg.h
Xinclude/mysql/m_ctype.h.in
Xinclude/mysql/m_string.h
Xinclude/mysql/my_list.h
Xinclude/mysql/my_sys.h
Xinclude/mysql/mysql.h
Xinclude/mysql/mysql_com.h
Xinclude/mysql/mysql_version.h
Xinclude/mysql/mysqld_error.h
X@unexec install-info --delete %D/info/mysql.info %D/info/dir
Xinfo/mysql.info
X@exec install-info %D/info/mysql.info %D/info/dir
Xlib/mysql/libdbug.a
Xlib/mysql/libheap.a
Xlib/mysql/libmerge.a
Xlib/mysql/libmysqlclient.a
Xlib/mysql/libmysqlclient.so
Xlib/mysql/libmysqlclient.so.6
Xlib/mysql/libmystrings.a
Xlib/mysql/libmysys.a
Xlib/mysql/libnisam.a
Xlibexec/mysqld
Xshare/doc/mysql/include.texi
Xshare/doc/mysql/manual.html
Xshare/doc/mysql/manual.ps
Xshare/doc/mysql/manual.texi
Xshare/doc/mysql/manual.txt
Xshare/doc/mysql/manual_toc.html
Xshare/mysql/binary-configure
Xshare/mysql/czech/errmsg.sys
Xshare/mysql/czech/errmsg.txt
Xshare/mysql/dutch/errmsg.sys
Xshare/mysql/dutch/errmsg.txt
Xshare/mysql/english/errmsg.sys
Xshare/mysql/english/errmsg.txt
Xshare/mysql/french/errmsg.sys
Xshare/mysql/french/errmsg.txt
Xshare/mysql/german/errmsg.sys
Xshare/mysql/german/errmsg.txt
Xshare/mysql/hungarian/errmsg.sys
Xshare/mysql/hungarian/errmsg.txt
Xshare/mysql/italian/errmsg.sys
Xshare/mysql/italian/errmsg.txt
Xshare/mysql/japanese/errmsg.sys
Xshare/mysql/japanese/errmsg.txt
Xshare/mysql/korean/errmsg.sys
Xshare/mysql/korean/errmsg.txt
Xshare/mysql/make_binary_distribution
Xshare/mysql/my-example.cnf
Xshare/mysql/mysql-3.22.23b.spec
Xshare/mysql/mysql-log-rotate
Xshare/mysql/mysql.server
Xshare/mysql/norwegian-ny/errmsg.sys
Xshare/mysql/norwegian-ny/errmsg.txt
Xshare/mysql/norwegian/errmsg.sys
Xshare/mysql/norwegian/errmsg.txt
Xshare/mysql/polish/errmsg.sys
Xshare/mysql/polish/errmsg.txt
Xshare/mysql/portuguese/errmsg.sys
Xshare/mysql/portuguese/errmsg.txt
Xshare/mysql/russian/errmsg.sys
Xshare/mysql/russian/errmsg.txt
Xshare/mysql/slovak/errmsg.sys
Xshare/mysql/slovak/errmsg.txt
Xshare/mysql/spanish/errmsg.sys
Xshare/mysql/spanish/errmsg.txt
Xshare/mysql/swedish/errmsg.sys
Xshare/mysql/swedish/errmsg.txt
X@dirrm include/mysql
X@dirrm lib/mysql
X@dirrm share/doc/mysql
X@dirrm share/mysql/czech
X@dirrm share/mysql/dutch
X@dirrm share/mysql/english
X@dirrm share/mysql/french
X@dirrm share/mysql/german
X@dirrm share/mysql/hungarian
X@dirrm share/mysql/italian
X@dirrm share/mysql/japanese
X@dirrm share/mysql/korean
X@dirrm share/mysql/mysql
X@dirrm share/mysql/norwegian
X@dirrm share/mysql/norwegian-ny
X@dirrm share/mysql/polish
X@dirrm share/mysql/portuguese
X@dirrm share/mysql/russian
X@dirrm share/mysql/slovak
X@dirrm share/mysql/spanish
X@dirrm share/mysql/swedish
X@dirrm share/mysql
X@exec %D/bin/mysql_install_db
X@exec /usr/bin/killall mysqld
X@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %D/lib/mysql
X@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
END-of-mysql/pkg/PLIST
echo c - mysql/patches
mkdir -p mysql/patches > /dev/null 2>&1
echo x - mysql/patches/patch-ab
sed 's/^X//' >mysql/patches/patch-ab << 'END-of-mysql/patches/patch-ab'
X--- mit-pthreads/config/configure.orig	Tue Mar 10 10:11:25 1998
X+++ mit-pthreads/config/configure	Thu Feb  4 23:02:41 1999
X@@ -692,10 +692,6 @@
X echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
X   if test "$ac_test_CFLAGS" = set; then
X     CFLAGS="$ac_save_CFLAGS"
X-  elif test $ac_cv_prog_cc_g = yes; then
X-    CFLAGS="-g -O2"
X-  else
X-    CFLAGS="-O2"
X   fi
X else
X   GCC=
X@@ -1280,7 +1276,7 @@
X     m68*-*-netbsd*)
X 	name=m68000-netbsd
X 	;;
X-    i386-*-freebsd2.*)
X+    i386-*-freebsd*)
X         name=i386-freebsd-2.0
X         sysincludes=freebsd-2.0
X         except="fork lseek ftruncate sigsuspend sigprocmask"
END-of-mysql/patches/patch-ab
echo x - mysql/patches/patch-ad
sed 's/^X//' >mysql/patches/patch-ad << 'END-of-mysql/patches/patch-ad'
X--- scripts/safe_mysqld.sh.orig	Fri May 14 11:11:46 1999
X+++ scripts/safe_mysqld.sh	Tue Jun  8 11:14:02 1999
X@@ -12,33 +12,9 @@
X 
X trap '' 1 2 3 15			# we shouldn't let anyone kill us
X 
X-# Check if we are starting this relative (for the binary release)
X-if test -d ./data/mysql -a -f ./share/mysql/english/errmsg.sys -a \
X- -x ./bin/mysqld
X-then
X-  MY_BASEDIR_VERSION=`pwd`		# Where bin, share and data are
X-  DATADIR=$MY_BASEDIR_VERSION/data	# Where the databases are
X-  ledir=$MY_BASEDIR_VERSION/bin		# Where mysqld is
X-# Check if this is a 'moved install directory'
X-elif test -f ./var/mysql/db.frm -a -f ./share/mysql/english/errmsg.sys -a \
X- -x ./libexec/mysqld
X-then
X-  MY_BASEDIR_VERSION=`pwd`		# Where libexec, share and var are
X-  DATADIR=$MY_BASEDIR_VERSION/var	# Where the databases are
X-  ledir=$MY_BASEDIR_VERSION/libexec	# Where mysqld is
X-else
X-  MY_BASEDIR_VERSION=@prefix@
X-  DATADIR=@localstatedir@
X-  ledir=@libexecdir@
X-  if test ! -x $ledir/mysqld
X-  then
X-    echo "The file $ledir/mysqld doesn't exist or is not executable"
X-    echo "Please do a cd to the mysql installation directory and restart"
X-    echo "this script from there as follows:"
X-    echo "./bin/safe_mysqld".
X-    exit 1;
X-  fi
X-fi
X+MY_BASEDIR_VERSION=@prefix@
X+DATADIR=@localstatedir@
X+ledir=@libexecdir@
X 
X pid_file=$DATADIR/`@HOSTNAME@`.pid
X log=$DATADIR/`@HOSTNAME@`.log
X@@ -114,33 +90,6 @@
X   if test ! -f $pid_file		# This is removed if normal shutdown
X   then
X     break;
X-  fi
X-  if @IS_LINUX@
X-  then
X-    # Test if one process was hanging.
X-    # This is only a fix for Linux (running as base 3 mysqld processes)
X-    # but should work for the rest of the servers.
X-    # The only thing is ps x => redhat 5 gives warnings when using ps -x.
X-    # kill -9 is used or the process won't react on the kill.
X-    numofproces=`ps x | grep -v "grep" | grep -c $ledir/mysqld`
X-    echo -e "\nNumber of processes running now: $numofproces" | tee -a $err_log
X-    I=1
X-    while test "$I" -le "$numofproces"
X-    do 
X-      PROC=`ps x | grep $ledir/mysqld | grep -v "grep" | tail -1` 
X-	for T in $PROC
X-	do
X-	  break
X-	done
X-	#    echo "TEST $I - $T **"
X-	if kill -9 $T
X-	then
X-	  echo "mysqld process hanging, pid $T - killed" | tee -a $err_log
X-	else 
X-	  break
X-	fi
X-	I=`expr $I + 1`
X-    done
X   fi
X   echo "mysqld restarted on " `date` | tee -a $err_log
X done
END-of-mysql/patches/patch-ad
echo x - mysql/patches/patch-ae
sed 's/^X//' >mysql/patches/patch-ae << 'END-of-mysql/patches/patch-ae'
X--- configure.orig	Mon Apr  5 01:46:35 1999
X+++ configure	Tue Apr  6 23:08:43 1999
X@@ -2199,30 +2199,7 @@
X echo $ac_n "checking "how to check if pid exists"""... $ac_c" 1>&6
X echo "configure:2201: checking "how to check if pid exists"" >&5
X PS=$ac_cv_path_PS
X-# Linux style
X-if $PS p $$ 2> /dev/null | grep $0 > /dev/null
X-then
X-  FIND_PROC="$PS p \$\$PID | grep mysqld > /dev/null"
X-# Solaris
X-elif $PS -p $$ 2> /dev/null | grep $0 > /dev/null
X-then
X-  FIND_PROC="$PS -p \$\$PID | grep mysqld > /dev/null"
X-# BSD style
X-elif $PS -uaxww 2> /dev/null | grep $0 > /dev/null
X-then
X-  FIND_PROC="$PS -uaxww | grep mysqld | grep \" \$\$PID \" > /dev/null"
X-# SysV style
X-elif $PS -ef 2> /dev/null | grep $0 > /dev/null
X-then
X-  FIND_PROC="$PS -ef | grep mysqld | grep \" \$\$PID \" > /dev/null"
X-# Do anybody use this?
X-elif $PS $$ 2> /dev/null | grep $0 > /dev/null
X-then
X-  FIND_PROC="$PS \$\$PID | grep mysqld > /dev/null"
X-else
X-  { echo "configure: error: Could not find the right ps switches. Which OS is this ?. See the Installation chapter in the Reference Manual." 1>&2; exit 1; }
X-fi
X-
X+FIND_PROC="$PS -uaxww | grep mysqld | grep \" \$\$PID \" > /dev/null"
X echo "$ac_t"""$FIND_PROC"" 1>&6
X 
X # Check if a pid is valid
X@@ -3684,8 +3661,6 @@
X #define $ac_tr_lib 1
X EOF
X 
X-  LIBS="-lc_r $LIBS"
X-
X else
X   echo "$ac_t""no" 1>&6
X fi
X@@ -3935,14 +3910,6 @@
X else
X   CFLAGS="$CFLAGS -DDBUG_OFF"
X   CXXFLAGS="$CXXFLAGS -DDBUG_OFF"
X-  if test "$ac_cv_prog_gcc" = "yes"
X-  then
X-    CFLAGS="-O6 $CFLAGS"
X-    CXXFLAGS="-O $CXXFLAGS"	# Should be -O3 with gcc or g++
X-  else
X-    CFLAGS="-O $CFLAGS"
X-    CXXFLAGS="-O $CXXFLAGS"
X-  fi
X fi
X 
X # Force static compilation to avoid linking probles/get more speed
X@@ -7004,7 +6971,7 @@
X     echo ""
X     echo "Configuring MIT Pthreads"
X     # We will never install so installation paths are not needed.
X-    (cd mit-pthreads; sh ./configure)
X+    (cd mit-pthreads; sh ./configure ${CONFIGURE_ARGS})
X     echo "End of MIT Pthreads configuration"
X     echo ""
X   fi
END-of-mysql/patches/patch-ae
echo x - mysql/patches/patch-af
sed 's/^X//' >mysql/patches/patch-af << 'END-of-mysql/patches/patch-af'
X--- mit-pthreads/pthreads/Makefile.inc.orig	Mon Mar 24 17:42:01 1997
X+++ mit-pthreads/pthreads/Makefile.inc	Sat Oct 10 16:32:05 1998
X@@ -48,16 +48,10 @@
X .endif
X 
X syscall.o: syscall.S
X-	cpp ${CPPFLAGS} ${.CURDIR}/syscall.S > syscall.i
X-	as syscall.i 
X-	rm syscall.i
X-	mv a.out syscall.o
X+	gcc -c -x assembler-with-cpp -o syscall.o ${.CURDIR}/syscall.S
X 
X syscall.po: syscall.S
X-	cpp ${CPPFLAGS} ${.CURDIR}/syscall.S > syscall.i
X-	as syscall.i 
X-	rm syscall.i
X-	mv a.out syscall.po
X+	gcc -c -x assembler-with-cpp -o syscall.po ${.CURDIR}/syscall.S
X 
X MAN2+=
X 
END-of-mysql/patches/patch-af
echo x - mysql/patches/patch-ag
sed 's/^X//' >mysql/patches/patch-ag << 'END-of-mysql/patches/patch-ag'
X--- mit-pthreads/machdep/syscall-template-i386-freebsd-2.0.S.orig	Mon Sep 25 08:53:05 1995
X+++ mit-pthreads/machdep/syscall-template-i386-freebsd-2.0.S	Sat Oct 10 17:22:21 1998
X@@ -2,30 +2,41 @@
X 
X #ifdef __STDC__
X 
X-#define	SYSCALL(x)					\
X-	.globl _machdep_sys_##x##;		\
X-									\
X-_machdep_sys_##x:##;				\
X-									\
X-	movl $(SYS_##x##), %eax;		\
X-	.byte 0x9a; .long 0; .word 7;	\
X-	jb	1b;							\
X-	ret;							
X+#define SYS(X)		SYS_##X
X+#ifdef __ELF__
X+#define NAME(X)		machdep_sys_##X
X+#else
X+#define NAME(X)		_machdep_sys_##X
X+#endif
X 
X #else
X 
X-#define	SYSCALL(x)					\
X-	.globl _machdep_sys_/**/x;		\
X-									\
X-_machdep_sys_/**/x:;				\
X-									\
X-	movl $(SYS_/**/x), %eax;		\
X-	.byte 0x9a; .long 0; .word 7;	\
X-	jb	1b;							\
X-	ret;							
X+#define SYS(X)		SYS_/**/X
X+#ifdef __ELF__
X+#define NAME(X)		machdep_sys_/**/X
X+#else
X+#define NAME(X)		_machdep_sys_/**/X
X+#endif
X 
X #endif
X 
X+#ifdef __ELF__
X+#define END(X)		5: ; .type NAME(X),@function ; .size NAME(X),5b - NAME(X)
X+#define KERNCALL	int $0x80
X+#else
X+#define END(X)
X+#define KERNCALL	.byte 0x9a; .long 0; .word 7;
X+#endif
X+
X+#define	SYSCALL(x)					\
X+	.globl NAME(x);					\
X+							\
X+NAME(x):;						\
X+	movl $(SYS(x)), %eax;				\
X+	KERNCALL;					\
X+	jb	1b;					\
X+	ret;						\
X+	END(x)
X 
X /*
X  * Initial asm stuff for all functions.
END-of-mysql/patches/patch-ag
echo x - mysql/patches/patch-ah
sed 's/^X//' >mysql/patches/patch-ah << 'END-of-mysql/patches/patch-ah'
X--- mit-pthreads/machdep/syscall-i386-freebsd-2.0.S.orig	Mon Oct 20 03:35:30 1997
X+++ mit-pthreads/machdep/syscall-i386-freebsd-2.0.S	Sat Oct 10 17:20:22 1998
X@@ -51,30 +51,29 @@
X 
X #ifdef __STDC__
X 
X-#define	SYSCALL(x)					\
X-	.globl _machdep_sys_##x##;		\
X-									\
X-_machdep_sys_##x##:;				\
X-									\
X-	movl $(SYS_##x##), %eax;		\
X-	.byte 0x9a; .long 0; .word 7;	\
X-	jb	1b;							\
X-	ret;							
X+#ifdef __ELF__
X+#define NAME(X)		machdep_sys_##X
X+#else
X+#define NAME(X)		_machdep_sys_##X
X+#endif
X 
X #else
X 
X-#define	SYSCALL(x)					\
X-	.globl _machdep_sys_/**/x;		\
X-									\
X-_machdep_sys_/**/x:;				\
X-									\
X-	movl $(SYS_/**/x), %eax;		\
X-	.byte 0x9a; .long 0; .word 7;	\
X-	jb	1b;							\
X-	ret;							
X+#ifdef __ELF__
X+#define NAME(X)		machdep_sys_/**/X
X+#else
X+#define NAME(X)		_machdep_sys_/**/X
X+#endif
X 
X #endif
X 
X+#ifdef __ELF__
X+#define END(X)		5: ; .type NAME(X),@function ; .size NAME(X),5b - NAME(X)
X+#define KERNCALL	int $0x80
X+#else
X+#define END(X)
X+#define KERNCALL	.byte 0x9a; .long 0; .word 7;
X+#endif
X 
X /*
X  * Initial asm stuff for all functions.
X@@ -95,17 +94,18 @@
X /* ==========================================================================
X  * machdep_sys_fork()
X  */
X-	.globl _machdep_sys_fork;		
X+	.globl NAME(fork);		
X 									
X-_machdep_sys_fork:;				
X+NAME(fork):;				
X 									
X 	movl $(SYS_fork), %eax;		
X-	.byte 0x9a; .long 0; .word 7;	
X+	KERNCALL;
X 	cmpl $0, %edx
X 	je	2f
X 	movl $0, %eax
X 2:	
X 	ret;							
X+	END(fork)
X 
X /* ==========================================================================
X  * machdep_sys___syscall()
X@@ -114,57 +114,56 @@
X _machdep_sys___syscall:;				
X 
X 	movl $(SYS___syscall), %eax;		
X-	.byte 0x9a; .long 0; .word 7;	
X+	KERNCALL;
X 	jb 3f;
X 	ret
X 
X /* ==========================================================================
X  * machdep_sys_sigsuspend()
X  */
X-	.globl _machdep_sys_sigsuspend;		
X+	.globl NAME(sigsuspend);		
X 
X-_machdep_sys_sigsuspend:;
X+NAME(sigsuspend):;
X 
X 	movl    4(%esp),%eax            # fetch mask arg
X-    movl    (%eax),%eax             # indirect to mask arg
X-    movl    %eax,4(%esp)
X+	movl    (%eax),%eax             # indirect to mask arg
X+	movl    %eax,4(%esp)
X 	movl $(SYS_sigsuspend), %eax;		
X-	.byte 0x9a; .long 0; .word 7;	
X+	KERNCALL;
X 	jb 3f;
X 	ret
X-
X 3:
X-	
X 	neg		%eax
X 	movl	$0xffffffff,%edx
X 	ret
X+	END(sigsuspend)
X 
X /* ==========================================================================
X  * machdep_sys_sigprocmask()
X  */
X-	.globl _machdep_sys_sigprocmask;		
X+	.globl NAME(sigprocmask);		
X 
X-_machdep_sys_sigprocmask:;
X+NAME(sigprocmask):;
X 
X 	movl    8(%esp),%ecx
X 	movl    (%ecx),%ecx
X 	movl    %ecx,8(%esp)
X 	movl    $ SYS_sigprocmask , %eax
X-	.byte 0x9a; .long 0; .word 7;
X+	KERNCALL;
X 	jb 4f;
X 	ret
X-
X 4:
X 	neg     %eax
X 	movl    $0xffffffff,%edx
X 	ret
X+	END(sigprocmask)
X 
X /* ==========================================================================
X  * machdep_sys_lseek()
X  */
X-	.globl _machdep_sys_lseek;		
X+	.globl NAME(lseek);		
X 
X-_machdep_sys_lseek:;				
X+NAME(lseek):;				
X 									
X 	pushl  %ebp;
X 	movl   %esp,%ebp;
X@@ -178,13 +177,14 @@
X 	call _machdep_sys___syscall;
X 	leave
X 	ret
X+	END(lseek)
X 
X /* ==========================================================================
X  * machdep_sys_ftruncate() ; Added by Monty
X  */
X-        .globl _machdep_sys_ftruncate;
X+        .globl NAME(ftruncate);
X  
X-_machdep_sys_ftruncate:;
X+NAME(ftruncate):;
X  
X         pushl  %ebp; 
X         movl   %esp,%ebp;
X@@ -197,41 +197,44 @@
X         call _machdep_sys___syscall;
X         leave
X         ret  
X+	END(ftruncate)
X 
X /* ==========================================================================
X  * machdep_sys_setjmp()
X  */
X-	.globl _machdep_sys_setjmp;		
X+	.globl NAME(setjmp);		
X 
X-_machdep_sys_setjmp:;				
X-    movl    4(%esp),%eax
X-    movl    0(%esp),%edx
X-    movl    %edx, 0(%eax)       /* rta */
X-    movl    %ebx, 4(%eax)
X-    movl    %esp, 8(%eax)
X-    movl    %ebp,12(%eax)
X-    movl    %esi,16(%eax)
X-    movl    %edi,20(%eax)
X-    xorl    %eax,%eax
X-    ret
X+NAME(setjmp):;				
X+	movl    4(%esp),%eax
X+	movl    0(%esp),%edx
X+	movl    %edx, 0(%eax)       /* rta */
X+	movl    %ebx, 4(%eax)
X+	movl    %esp, 8(%eax)
X+	movl    %ebp,12(%eax)
X+	movl    %esi,16(%eax)
X+	movl    %edi,20(%eax)
X+	xorl    %eax,%eax
X+	ret
X+	END(setjmp)
X 
X /* ==========================================================================
X  * machdep_sys_longjmp()
X  */
X-    .globl _machdep_sys_longjmp;
X+    .globl NAME(longjmp);
X     
X-_machdep_sys_longjmp:;
X-    movl    4(%esp),%edx
X-    movl    8(%esp),%eax
X-    movl    0(%edx),%ecx
X-    movl    4(%edx),%ebx
X-    movl    8(%edx),%esp
X-    movl    12(%edx),%ebp
X-    movl    16(%edx),%esi
X-    movl    20(%edx),%edi
X-    testl   %eax,%eax
X-    jnz 1f
X-    incl    %eax
X-1:  movl    %ecx,0(%esp)
X-    ret
X-
X+NAME(longjmp):;
X+	movl    4(%esp),%edx
X+	movl    8(%esp),%eax
X+	movl    0(%edx),%ecx
X+	movl    4(%edx),%ebx
X+	movl    8(%edx),%esp
X+	movl    12(%edx),%ebp
X+	movl    16(%edx),%esi
X+	movl    20(%edx),%edi
X+	testl   %eax,%eax
X+	jnz 1f
X+	incl    %eax
X+1:
X+	movl    %ecx,0(%esp)
X+	ret
X+	END(longjmp)
END-of-mysql/patches/patch-ah
echo x - mysql/patches/patch-ac
sed 's/^X//' >mysql/patches/patch-ac << 'END-of-mysql/patches/patch-ac'
X--- mit-pthreads/machdep/freebsd-2.0/__unistd.h.orig	Wed Mar 26 15:26:39 1997
X+++ mit-pthreads/machdep/freebsd-2.0/__unistd.h	Tue Sep  1 10:59:22 1998
X@@ -52,8 +52,12 @@
X #define	_POSIX_SAVED_IDS	/* saved set-user-ID and set-group-ID */
X #endif
X 
X+#ifndef _POSIX_VERSION
X #define	_POSIX_VERSION		198808L
X+#endif
X+#ifndef _POSIX2_VERSION
X #define	_POSIX2_VERSION		199212L
X+#endif
X 
X /* execution-time symbolic constants */
X 				/* chown requires appropriate privileges */
END-of-mysql/patches/patch-ac
echo x - mysql/patches/patch-aa
sed 's/^X//' >mysql/patches/patch-aa << 'END-of-mysql/patches/patch-aa'
X--- scripts/mysql_install_db.sh.orig	Mon Mar  1 20:08:17 1999
X+++ scripts/mysql_install_db.sh	Thu Mar  4 22:05:57 1999
X@@ -15,10 +15,6 @@
X force=0
X IN_RPM=0
X 
X-# Are we doing an rpm install?
X-if test "$1" = "-IN-RPM"; then IN_RPM=1; shift; fi
X-if test "$1" = "--force"; then force=1; shift; fi
X-
X # Get mysqld/safe_mysqld options from /etc/my.cnf or ~/.my.cnf
X if test -w /
X then
X@@ -60,8 +56,6 @@
X   fi
X fi
X 
X-# On IRIX hostname is in /usr/bsd so add this to the path
X-PATH=$PATH:/usr/bsd
X hostname=`hostname`		# Install this too in the user table
X 
X # Check if hostname is valid
END-of-mysql/patches/patch-aa
echo c - mysql/scripts
mkdir -p mysql/scripts > /dev/null 2>&1
echo x - mysql/scripts/check_old_version
sed 's/^X//' >mysql/scripts/check_old_version << 'END-of-mysql/scripts/check_old_version'
X#!/usr/bin/perl
X#
X# $Id: check_old_version,v 1.1.1.1 1997/06/18 19:35:30 jfitz Exp $
X#
X
Xif( -d "/var/db/mysql" ) {
X	if( ! $ENV{OVERWRITE_DB} ) {
X		print <<END;
X
XYou appear to already have a mysql database directory in /var/db/mysql.
X
XIn order to preserve your existing data, you should:
X	- dump all your databases
X	- kill mysql if it is running
X	- delete the /var/db/mysql directory
X	- run 'make install'
X	- start up mysql
X	- re-create all of your database
X	- re-load your data
X
XIf you understand the consequences of this upgrade, please re-build this
Xport with the environment variable OVERWRITE_DB defined.
X
XEND
X		exit 1;
X	}
X}
X
X#
X# EOF
END-of-mysql/scripts/check_old_version
echo x - mysql/Makefile
sed 's/^X//' >mysql/Makefile << 'END-of-mysql/Makefile'
X# ports collection makefile for:	MySQL
X# Version required:			v3.22.23b
X# Date created:				13 Jun 1999
X# Whom:					Oh Junseon <hollywar@mail.holywar.net>
X#
X# $Id$
X#
X
XDISTNAME=	mysql-3.22.23b
XPKGNAME=	ko-mysql-3.22.23b
XCATEGORIES=	korean databases
XMASTER_SITES=	http://www.fh-wolfenbuettel.de/ftp/pub/database/mysql/Downloads/MySQL-3.22/ \
X		ftp://ftp.digex.net/pub/database/mysql/Downloads/MySQL-3.22/ \
X		ftp://ftp.bse.bg/pub/Unix/database/MySQL/ \
X		ftp://ftp.plig.net/pub/mysql/Downloads/MySQL-3.22/ \
X		ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MySQL-3.22/
X
XMAINTAINER=	hollywar@mail.holywar.net
X
XY2K=            http://www.tcx.se/Manual_chapter/manual_Introduction.html#Year_2000_compliance
X
XMAN1=		mysql.1
X
XUSE_PERL5=	yes
XUSE_LIBTOOL=	yes
XCONFIGURE_ARGS=	--localstatedir=/var/db/mysql \
X		--without-perl \
X		--without-debug \
X		--without-readline \
X		--without-bench \
X		--with-charset=euc_kr
XCONFIGURE_ENV+=	PERL=${PERL} \
X		PERL5=${PERL} \
X		INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
X		CXXFLAGS="${CFLAGS}" \
X		CONFIGURE_ARGS="${CONFIGURE_ARGS}"
X
X.include <bsd.port.pre.mk>
X
X.if defined(NATIVE_THREADS) && ${OSVERSION} >= 300000
XCONFIGURE_ARGS+=	--with-mit-threads=no
X.else
XCONFIGURE_ARGS+=	--with-mit-threads=yes
X.endif
X
X.if !defined(NATIVE_THREADS) && ${OSVERSION} >= 300000
Xpre-fetch:
X	@${ECHO}
X	@${ECHO} "You may set NATIVE_THREADS (make NATIVE_THREADS=yes)"
X	@${ECHO} "to compile mysql with the native FreeBSD threads (libc_r)."
X	@${ECHO} "Warning: There are still some bugs in libc_r which prevent"
X	@${ECHO} "         'mysqladmin shutdown' from working properly and"
X	@${ECHO} "         killing mysqld might not work."
X	@${ECHO}
X.elif defined(NATIVE_THREADS) && ${OSVERSION} >= 300000
Xpre-fetch:
X	@${ECHO}
X	@${ECHO} "Using native FreeBSD threads (libc_r)."
X	@${ECHO}
X.elif defined(NATIVE_THREADS) && ${OSVERSION} < 300000
Xpre-fetch:
X	@${ECHO}
X	@${ECHO} "Sorry, native FreeBSD threads (libc_r) in 2.2-branch"
X	@${ECHO} "are still to buggy to use with mysql."
X	@${ECHO} "Using mit-pthreads."
X	@${ECHO}
X.endif
X
Xpre-install:
X.if !defined(PACKAGE_BUILDING)
X	@ ${SETENV} ${MAKE_ENV} ${PERL5} ${SCRIPTDIR}/check_old_version
X.endif
X
Xpost-install:
X	${MKDIR} ${PREFIX}/share/mysql/mysql
X.if !defined(PACKAGE_BUILDING)
X	${PREFIX}/bin/mysql_install_db
X.endif
X	@ ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql.sh
X	@ ${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql.sh
X	@ ${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql.sh
X	@ ${ECHO} "${LDCONFIG} -m ${PREFIX}/lib/mysql" >> ${PREFIX}/etc/rc.d/mysql.sh
X	@ ${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql.sh
X	@ ${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql.sh
X	@ ${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql.sh
X	@ ${ECHO} "	${PREFIX}/bin/safe_mysqld --language=korean > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql.sh
X	@ ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql.sh
X	@ /bin/chmod 750 ${PREFIX}/etc/rc.d/mysql.sh
X
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/doc/mysql
X.for doc in manual.html manual.ps manual_toc.html manual.txt manual.texi include.texi
X	${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${PREFIX}/share/doc/mysql
X.endfor
X	${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
X	@install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir
X.endif
X
X	${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib/mysql
X
X.include <bsd.port.post.mk>
END-of-mysql/Makefile
exit


--------------2C2D3906224783A4FF3B950C--


>Release-Note:
>Audit-Trail:
>Unformatted:
 This is a multi-part message in MIME format.
 --------------2C2D3906224783A4FF3B950C
 Content-Type: text/plain; charset=EUC-KR
 Content-Transfer-Encoding: 7bit
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37690F7E.ACA4813D>