Ticket #399: patch-cvs-portfile

File patch-cvs-portfile, 2.5 KB (added by bchesneau@…, 21 years ago)

Patch that upgrade cvs portfile to 3.23.56

Line 
1--- Portfile-old        Tue Mar 18 02:07:13 2003
2+++ Portfile    Tue Mar 18 17:29:30 2003
3@@ -2,9 +2,9 @@
4 
5 PortSystem 1.0
6 name                   mysql
7-version                        3.23.52
8+version                        3.23.56
9 categories             databases
10-maintainers            eric@opendarwin.org
11+maintainers            eric@opendarwin.org             
12 description            Multithreaded SQL database server
13 long_description       MySQL is an open-source, multi-threaded SQL database \
14                        with a command syntax very similar to mSQL.
15@@ -15,31 +15,26 @@
16                        http://distfiles.opendarwin.org/:lt
17 
18 set filename           ${portname}-${portversion}${extract.sufx}
19-distfiles              ${filename} ltconfig13:lt ltmain13:lt
20 extract.only           ${filename}
21+distfiles               ${filename}
22 depends_lib            lib:libdl.1:dlcompat
23 
24-checksums              mysql-3.23.52.tar.gz md5 \
25-                       88705b7f38e64b5c21ebb68c77b75e5a \
26-                       ltconfig13 md5 ea53f42a550c9f9e653758a8ed91574e \
27-                       ltmain13 md5 e094ae92724c4015dbab97de151c2525
28-
29-post-patch {           system "cp ${distpath}/ltconfig13 ${worksrcpath}/ltconfig"
30-                       system "cp ${distpath}/ltmain13 ${worksrcpath}/ltmain.sh"
31-}
32+checksums              mysql-3.23.56.tar.gz md5 9d506468dc19bef79cbb106b20196a2f
33 
34 set dbdir              ${prefix}/var/db/mysql
35 
36-configure.env          LDFLAGS=-L${prefix}/lib\\ -lncurses \
37+configure.env          LDFLAGS=-L${prefix}/lib \
38                        CPPFLAGS=-I${prefix}/include
39 
40-configure.args         --localstatedir=${dbdir} \
41-                       --without-bench
42+configure.args         --localstatedir=${dbdir} --without-server --sysconfdir=${prefix}/etc --with-innodb --without-bench
43 
44-pre-install            { system "install -o root -m 755 -d ${dbdir}" }
45-
46-variant server {
47+variant server {
48        depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
49+       configure.args  --localstatedir=${dbdir} --sysconfdir=${prefix}/etc --with-innodb --without-bench
50+       pre-install     { system "install -o mysql -g mysql -m 775 -d ${dbdir}" 
51+                         #system "install -o root -m 777 -d ${prefix}/var/run"
52+                       }
53+
54 
55        post-install {
56                addgroup mysql
57@@ -47,12 +42,15 @@
58                adduser mysql gid=${gid} realname=MySQL\ Server
59 
60                #system "${destroot}${prefix}/bin/mysql_install_db"
61-               #system "chown -R mysql:mysql ${dbdir}"
62-               
63+               system "chown -R mysql:mysql ${dbdir}"
64+               #system "chmod -R 777 ${prefix}/var/run
65+       
66                system "install -o root -m 755 -d ${destroot}${prefix}/etc/rc.d"
67                set script [open ${destroot}${prefix}/etc/rc.d/mysql.sh w 0755]
68                puts $script "#!/bin/sh"
69                puts $script "${prefix}/bin/safe_mysqld --user=mysql &"
70                close $script
71+               system "cd ${workpath}/${worksrcdir} && \
72+                                       cp support-files/my-medium.cnf ${destroot}${prefix}/etc/my.cnf"
73        }
74 }