FreeBSD Bugzilla – Attachment 103469 Details for
Bug 143387
[PATCH] databases/mysql-server: switch to using USERS & GROUPS in Makefile
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
mysql-server-5.1.42.patch
mysql-server-5.1.42.patch (text/plain), 1.88 KB, created by
Sevan Janiyan
on 2010-01-31 00:30:09 UTC
(
hide
)
Description:
mysql-server-5.1.42.patch
Filename:
MIME Type:
Creator:
Sevan Janiyan
Created:
2010-01-31 00:30:09 UTC
Size:
1.88 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /home/ncvs/ports/databases/mysql51-server/Makefile,v >retrieving revision 1.258 >diff -u -r1.258 Makefile >--- Makefile 11 Jan 2010 11:58:38 -0000 1.258 >+++ Makefile 31 Jan 2010 00:11:21 -0000 >@@ -19,6 +19,7 @@ > SLAVEDIRS= databases/mysql51-client databases/mysql51-scripts > GNU_CONFIGURE= yes > MAKE_JOBS_SAFE= yes >+USE_LDCONFIG= yes > > CONFIGURE_ARGS= --localstatedir=/var/db/mysql \ > --without-debug \ >@@ -29,6 +30,9 @@ > --with-comment='FreeBSD port: ${PKGNAME}' \ > --enable-thread-safe-client > >+USERS= mysql >+GROUPS= mysql >+ > .ifdef USE_MYSQL > .error You have `USE_MYSQL' variable defined either in environment or in make(1) arguments. Please undefine and try again. > .endif >@@ -160,7 +164,6 @@ > > post-install: > .if !defined(PACKAGE_BUILDING) >- @${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL > @${CAT} ${PKGMESSAGE} > .endif > >Index: pkg-install >=================================================================== >RCS file: pkg-install >diff -N pkg-install >--- pkg-install 6 Apr 2005 13:38:28 -0000 1.6 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,36 +0,0 @@ >-#!/bin/sh >- >-PATH=/bin:/usr/sbin >- >-case $2 in >-POST-INSTALL) >- USER=mysql >- GROUP=${USER} >- UID=88 >- GID=${UID} >- >- if pw group show "${GROUP}" 2>/dev/null; then >- echo "You already have a group \"${GROUP}\", so I will use it." >- else >- if pw groupadd ${GROUP} -g ${GID}; then >- echo "Added group \"${GROUP}\"." >- else >- echo "Adding group \"${GROUP}\" failed..." >- exit 1 >- fi >- fi >- >- if pw user show "${USER}" 2>/dev/null; then >- echo "You already have a user \"${USER}\", so I will use it." >- else >- if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \ >- -d /nonexistent -s /sbin/nologin -c "MySQL Daemon" >- then >- echo "Added user \"${USER}\"." >- else >- echo "Adding user \"${USER}\" failed..." >- exit 1 >- fi >- fi >- ;; >-esac
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 143387
: 103469