FreeBSD Bugzilla – Attachment 103465 Details for
Bug 143384
[PATCH] databases/mysql50-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.0.89.patch
mysql-server-5.0.89.patch (text/plain), 1.67 KB, created by
Sevan Janiyan
on 2010-01-30 23:50:07 UTC
(
hide
)
Description:
mysql-server-5.0.89.patch
Filename:
MIME Type:
Creator:
Sevan Janiyan
Created:
2010-01-30 23:50:07 UTC
Size:
1.67 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /home/ncvs/ports/databases/mysql50-server/Makefile,v >retrieving revision 1.250 >diff -u -r1.250 Makefile >--- Makefile 11 Jan 2010 11:58:38 -0000 1.250 >+++ Makefile 30 Jan 2010 23:38:09 -0000 >@@ -31,6 +31,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 >@@ -177,7 +180,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 143384
: 103465 |
103466