diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2005-07-02 18:37:41 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2005-07-02 18:37:41 +0000 |
commit | 810a91de93fce580f6ecd6aa6e8a4432dd9a73da (patch) | |
tree | de477741f5eff9e330f6a9f0dd61cbc3ab3d8984 | |
parent | Stable on alpha. (diff) | |
download | gentoo-2-810a91de93fce580f6ecd6aa6e8a4432dd9a73da.tar.gz gentoo-2-810a91de93fce580f6ecd6aa6e8a4432dd9a73da.tar.bz2 gentoo-2-810a91de93fce580f6ecd6aa6e8a4432dd9a73da.zip |
Remove nss-mysql. It is superseded by libnss-mysql.
(Portage version: 2.0.51.22-r1)
-rw-r--r-- | sys-libs/nss-mysql/ChangeLog | 7 | ||||
-rw-r--r-- | sys-libs/nss-mysql/Manifest | 9 | ||||
-rw-r--r-- | sys-libs/nss-mysql/files/digest-nss-mysql-0.40 | 1 | ||||
-rw-r--r-- | sys-libs/nss-mysql/files/digest-nss-mysql-0.43 | 1 | ||||
-rw-r--r-- | sys-libs/nss-mysql/files/digest-nss-mysql-0.43-r1 | 1 | ||||
-rw-r--r-- | sys-libs/nss-mysql/files/gentoo.sql.nss-mysql-0.40.gentoo | 51 | ||||
-rw-r--r-- | sys-libs/nss-mysql/metadata.xml | 5 | ||||
-rw-r--r-- | sys-libs/nss-mysql/nss-mysql-0.40.ebuild | 106 | ||||
-rw-r--r-- | sys-libs/nss-mysql/nss-mysql-0.43-r1.ebuild | 121 | ||||
-rw-r--r-- | sys-libs/nss-mysql/nss-mysql-0.43.ebuild | 108 |
10 files changed, 6 insertions, 404 deletions
diff --git a/sys-libs/nss-mysql/ChangeLog b/sys-libs/nss-mysql/ChangeLog index f7a5d1f63a07..de1b22a40d63 100644 --- a/sys-libs/nss-mysql/ChangeLog +++ b/sys-libs/nss-mysql/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-libs/nss-mysql # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/nss-mysql/ChangeLog,v 1.13 2005/01/03 00:25:23 ciaranm Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/nss-mysql/ChangeLog,v 1.14 2005/07/02 18:37:41 robbat2 Exp $ + + 02 Jul 2005; Robin H. Johnson <robbat2@gentoo.org> + -files/gentoo.sql.nss-mysql-0.40.gentoo, -metadata.xml, + -nss-mysql-0.40.ebuild, -nss-mysql-0.43.ebuild, -nss-mysql-0.43-r1.ebuild: + Remove nss-mysql. It is superseded by libnss-mysql. 03 Jan 2005; Ciaran McCreesh <ciaranm@gentoo.org> : Change encoding to UTF-8 for GLEP 31 compliance diff --git a/sys-libs/nss-mysql/Manifest b/sys-libs/nss-mysql/Manifest deleted file mode 100644 index 90410de582cf..000000000000 --- a/sys-libs/nss-mysql/Manifest +++ /dev/null @@ -1,9 +0,0 @@ -MD5 8f8a1243c1041be10d9a45ddceb2effb nss-mysql-0.43-r1.ebuild 3983 -MD5 5d21c93af3309206cee12cb959315483 ChangeLog 1945 -MD5 40900c07cd9628a99d54666b1b03113a nss-mysql-0.40.ebuild 3478 -MD5 c04d29cb5513ec47138a74625a8830ff nss-mysql-0.43.ebuild 3486 -MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 -MD5 2b0ba07ff0f49db19b3600a2dc55d8be files/gentoo.sql.nss-mysql-0.40.gentoo 1927 -MD5 59a4106196b7eda79f0df359006a6479 files/digest-nss-mysql-0.40 66 -MD5 b8db99e6a0041767a1c380f416aec806 files/digest-nss-mysql-0.43-r1 66 -MD5 b8db99e6a0041767a1c380f416aec806 files/digest-nss-mysql-0.43 66 diff --git a/sys-libs/nss-mysql/files/digest-nss-mysql-0.40 b/sys-libs/nss-mysql/files/digest-nss-mysql-0.40 deleted file mode 100644 index 3b5751708c73..000000000000 --- a/sys-libs/nss-mysql/files/digest-nss-mysql-0.40 +++ /dev/null @@ -1 +0,0 @@ -MD5 0d695d86a2adaea93c79578dfe6e309d nss-mysql-0.40.tar.gz 216701 diff --git a/sys-libs/nss-mysql/files/digest-nss-mysql-0.43 b/sys-libs/nss-mysql/files/digest-nss-mysql-0.43 deleted file mode 100644 index 6a2420404378..000000000000 --- a/sys-libs/nss-mysql/files/digest-nss-mysql-0.43 +++ /dev/null @@ -1 +0,0 @@ -MD5 1b3e62509dec0904142a06c58e9b9473 nss-mysql-0.43.tar.gz 209713 diff --git a/sys-libs/nss-mysql/files/digest-nss-mysql-0.43-r1 b/sys-libs/nss-mysql/files/digest-nss-mysql-0.43-r1 deleted file mode 100644 index 6a2420404378..000000000000 --- a/sys-libs/nss-mysql/files/digest-nss-mysql-0.43-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 1b3e62509dec0904142a06c58e9b9473 nss-mysql-0.43.tar.gz 209713 diff --git a/sys-libs/nss-mysql/files/gentoo.sql.nss-mysql-0.40.gentoo b/sys-libs/nss-mysql/files/gentoo.sql.nss-mysql-0.40.gentoo deleted file mode 100644 index 765e643ef010..000000000000 --- a/sys-libs/nss-mysql/files/gentoo.sql.nss-mysql-0.40.gentoo +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 2002 Interhost ANS, Norway - www.interhost.no -# Distributed under the terms of the GNU General Public License, v2 or later -# Written for Portage by Christian Skarby (Interhost ANS, Norway) christian.skarby@interhost.no - -CREATE DATABASE IF NOT EXISTS nss_mysql; -USE nss_mysql; - -CREATE TABLE IF NOT EXISTS groups ( - group_id int(11) NOT NULL auto_increment primary key, - group_name varchar(30) DEFAULT '' NOT NULL, - status char(1) DEFAULT 'A', - group_password varchar(64) DEFAULT 'x' NOT NULL, - gid int(11) NOT NULL -); - -CREATE TABLE IF NOT EXISTS user_group ( - user_id int(11) DEFAULT '0' NOT NULL, - group_id int(11) DEFAULT '0' NOT NULL - ); - -CREATE TABLE IF NOT EXISTS user ( - user_id int(11) NOT NULL auto_increment primary key, - user_name varchar(50) DEFAULT '' NOT NULL, - realname varchar(32) DEFAULT '' NOT NULL, - shell varchar(20) DEFAULT '/bin/sh' NOT NULL, - password varchar(40) DEFAULT '' NOT NULL, - status char(1) DEFAULT 'N' NOT NULL, - uid int(11) NOT NULL, - gid int(11) DEFAULT '65534' NOT NULL, - homedir varchar(32) DEFAULT '/bin/sh' NOT NULL, - lastchange int(11), - min int(11), - max int(11), - warn int(11), - inact int(11), - expire int(11) - ); - -GRANT select(user_name,user_id,uid,gid,realname,shell,homedir,status) - on nss_mysql.user to nss@localhost identified by 'password'; -GRANT select(group_name,group_id,gid,group_password,status) - on nss_mysql.groups to nss@localhost identified by 'password'; -GRANT select(user_id,group_id) - on nss_mysql.user_group to nss@localhost identified by 'password'; -GRANT SELECT,INSERT,UPDATE,DELETE - on nss_mysql.user to 'nss-shadow'@localhost identified by 'another_password'; -GRANT SELECT,INSERT,UPDATE,DELETE - on nss_mysql.groups to 'nss-shadow'@localhost identified by 'another_password'; -GRANT SELECT,INSERT,UPDATE,DELETE - on nss_mysql.user_group to 'nss-shadow'@localhost identified by 'another_password'; -FLUSH PRIVILEGES; diff --git a/sys-libs/nss-mysql/metadata.xml b/sys-libs/nss-mysql/metadata.xml deleted file mode 100644 index 96a2d586367d..000000000000 --- a/sys-libs/nss-mysql/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<herd>base-system</herd> -</pkgmetadata> diff --git a/sys-libs/nss-mysql/nss-mysql-0.40.ebuild b/sys-libs/nss-mysql/nss-mysql-0.40.ebuild deleted file mode 100644 index 71b4ea5d2ea6..000000000000 --- a/sys-libs/nss-mysql/nss-mysql-0.40.ebuild +++ /dev/null @@ -1,106 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/nss-mysql/nss-mysql-0.40.ebuild,v 1.14 2005/01/03 00:25:23 ciaranm Exp $ - -DESCRIPTION="NSS MySQL Module" -HOMEPAGE="http://savannah.gnu.org/projects/nss-mysql" -SRC_URI="http://savannah.gnu.org/download/nss-mysql/nss-mysql.pkg/0.40/${P}.tar.gz" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="x86 ppc sparc alpha hppa" - -DEPEND=">=dev-db/mysql-3.23.51-r1" -RDEPEND="${DEPEND} - !sys-libs/libnss-mysql" - -src_compile() { - use static && myconf="--enable-static" - ./configure ${myconf} \ - --host=${CHOST} \ - --prefix=/usr \ - --infodir=/usr/share/info \ - --sysconfdir=/etc/nss-mysql \ - --libdir=/lib \ - --mandir=/usr/share/man || die "./configure failed" - emake || die - cp -a ${FILESDIR}/gentoo.sql.${P}.gentoo ${S}/gentoo.sql -} - -src_install () { - make DESTDIR=${D} install || die - dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README SHADOW THANKS TODO UPGRADE sample.sql gentoo.sql -} - -pkg_postinst() { - einfo - einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" - einfo "to autosetup nss-mysql and the mysql tables." - einfo "You should then edit your /etc/nsswitch.conf file to activate nss_mysql" - einfo "and suit your intentions. Below is an partial example:" - einfo - einfo "passwd: files mysql" - einfo "shadow: files mysql" - einfo "group: files mysql" - einfo -} - -pkg_config() { - echo "In order to continue we'll need to know a MySQL username with enough" - echo "privleges to create databases, mysql-users and grant privleges," - echo "typically a user named root." - echo - echo -n "MySQL-root-user [root]: " - read USERNAME - if [ -z "${USERNAME}" ]; then - USERNAME="root" - fi - echo -n "Is it required to use a password in order to access mysql with ${USERNAME} [Y/n]: " - read NEEDPASS - POPT="-p" - if [ "${NEEDPASS}" == "n" ]; then - POPT="" - fi - cmd="${ROOT}/usr/bin/makepasswd --minchars=10 --maxchars=12" - if [ -f "${cmd}" ]; then - PASS=`$cmd` - PAS2=`$cmd` - fi - cmd="${ROOT}/usr/bin/passook" - if [ -f "${cmd}" ]; then - PASS=`$cmd` - PAS2=`$cmd` - fi - if [ -z "${PASS}" ]; then - echo ""; - echo "Didn't manage to find a passwd-generator, please type a passwords of your choise"; - echo -n "Shadow-access-password (root-only): "; - read PASS - echo -n "Select-public-info-password: "; - read PAS2 - fi - if [ -z "${PAS2}" ]; then - PAS2="badbadbadPASSWDMHALL20020715"; - fi - if [ -z "${PASS}" ]; then - einfo "I will not accept that you leave that the shadow-access-password empty" - die - fi - if [ ! -z "$POPT" ]; then - einfo "Pass the mysql-users \"${USERNAME}\"s password to mysql:"; - echo -n "mysql> " - fi - ( gunzip -c /usr/share/doc/${P}/gentoo.sql.gz | sed s/another_password/${PASS}/ | sed s/"'password'"/"'${PAS2}'"/ | mysql ${POPT} -u ${USERNAME} ) || die - FILE="/etc/nss-mysql/nss-mysql-root.conf"; sed -e s/"shadow.db_password ="/"shadow.db_password = ${PASS};#oldpass:"/ < ${FILE} | cat > ${FILE} - FILE="/etc/nss-mysql/nss-mysql.conf"; sed -e s/"users.db_password ="/"users.db_password = ${PAS2};#oldpass:"/ < ${FILE} | cat > ${FILE} - chown -R 0:0 /etc/nss-mysql - chmod 600 /etc/nss-mysql/nss-mysql-root.conf - chmod 644 /etc/nss-mysql/nss-mysql.conf - einfo "nss_mysql-configfiles and mysql-tables should now be setup" - einfo "remember to activate nss-mysql in /etc/nsswitch.conf with someting simillar to:" - einfo - einfo "passwd: files mysql" - einfo "shadow: files mysql" - einfo "group: files mysql" - einfo -} diff --git a/sys-libs/nss-mysql/nss-mysql-0.43-r1.ebuild b/sys-libs/nss-mysql/nss-mysql-0.43-r1.ebuild deleted file mode 100644 index 32c999f7d00b..000000000000 --- a/sys-libs/nss-mysql/nss-mysql-0.43-r1.ebuild +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/nss-mysql/nss-mysql-0.43-r1.ebuild,v 1.12 2005/01/03 00:25:23 ciaranm Exp $ - -DESCRIPTION="NSS MySQL Module" -HOMEPAGE="http://savannah.gnu.org/projects/${PN}" -SRC_URI="http://savannah.gnu.org/download/${PN}/${PN}.pkg/${PV}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="x86 alpha ~amd64 hppa ~mips ppc sparc" -IUSE="static" - -DEPEND="virtual/libc - >=dev-db/mysql-3.23.51-r1" -RDEPEND="${DEPEND} - app-arch/gzip - sys-apps/sed - !sys-libs/libnss-mysql" - -src_compile() { - use static && myconf="--enable-static" - ./configure ${myconf} \ - --host=${CHOST} \ - --prefix=/usr \ - --infodir=/usr/share/info \ - --sysconfdir=/etc/nss-mysql \ - --libdir=/lib \ - --mandir=/usr/share/man || die "./configure failed" - emake || die -} - -src_install () { - make DESTDIR=${D} install || die - dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README SHADOW THANKS TODO UPGRADE sample.sql - newdoc ${FILESDIR}/gentoo.sql.${PN}-0.40.gentoo gentoo.sql -} - -pkg_postinst() { - einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" - einfo "to autosetup nss-mysql and the mysql tables." - einfo "You should then edit your /etc/nsswitch.conf file to activate nss_mysql" - einfo "and suit your intentions. Below is an partial example:" - einfo - einfo "passwd: files mysql" - einfo "shadow: files mysql" - einfo "group: files mysql" -} - -pkg_config() { - local PASS="" - local PAS2="" - echo "In order to continue we'll need to know a MySQL username with enough" - echo "privleges to create databases, mysql-users and grant privleges," - echo "typically a user named root." - echo - echo -n "MySQL-root-user [root]: " - read USERNAME - if [ -z "${USERNAME}" ]; then - USERNAME="root" - fi - echo -n "Is it required to use a password in order to access mysql with ${USERNAME} [Y/n]: " - read NEEDPASS - POPT="-p" - if [ "${NEEDPASS}" == "n" ]; then - POPT="" - fi - cmd="${ROOT}/usr/bin/makepasswd --minchars=10 --maxchars=12 2>/dev/null" - if [ -z "${PASS}" -a -x "${cmd/ *}" ]; then - einfo "makepasswd found for password generation" - PASS=`eval $cmd` - PAS2=`eval $cmd` - fi - cmd="${ROOT}/usr/bin/passook 2>/dev/null" - if [ -z "${PASS}" -a -x "${cmd/ *}" ]; then - einfo "passook found for password generation" - PASS=`eval $cmd` - PAS2=`eval $cmd` - fi - cmd="${ROOT}/bin/dd if=/dev/random bs=32k count=1 2>/dev/null | md5sum | awk '{print \$1}'" - if [ -z "${PASS}" -a -x "${cmd/ *}" ]; then - einfo "Falling back to dd and m5sum..." - PASS=`eval $cmd``eval $cmd` - PAS2=`eval $cmd``eval $cmd` - fi - if [ -z "${PASS}" ]; then - echo ""; - echo "Didn't manage to find a passwd-generator, please type a passwords of your choise"; - echo -n "Shadow-access-password (root-only): "; - read PASS - echo -n "Select-public-info-password: "; - read PAS2 - else - einfo "shadow access password: ${PASS}" - einfo "public access password: ${PAS2}" - fi - if [ -z "${PAS2}" ]; then - PAS2="${RANDOM}${RANDOM}${RANDOM}${RANDOM}" - fi - if [ -z "${PASS}" ]; then - einfo "I will not accept that you leave that the shadow-access-password empty" - die - fi - if [ ! -z "$POPT" ]; then - einfo "Pass the mysql-users \"${USERNAME}\"s password to mysql:"; - echo -n "mysql> " - fi - ( zcat /usr/share/doc/${PF}/gentoo.sql.gz | sed "s/'another_password'/'${PASS}'/g;s/'password'/'${PAS2}'/g" | mysql ${POPT} -u ${USERNAME} ) || die - sed -e "s|shadow.db_password =.*|shadow.db_password = ${PASS};|" -i /etc/nss-mysql/nss-mysql-root.conf - sed -e "s|users.db_password =.*|users.db_password = ${PAS2};|" -i /etc/nss-mysql/nss-mysql.conf - chown -R 0:0 /etc/nss-mysql - chmod 600 /etc/nss-mysql/nss-mysql-root.conf - chmod 644 /etc/nss-mysql/nss-mysql.conf - einfo "nss_mysql-configfiles and mysql-tables should now be setup" - einfo "remember to activate nss-mysql in /etc/nsswitch.conf with someting simillar to:" - einfo - einfo "passwd: files mysql" - einfo "shadow: files mysql" - einfo "group: files mysql" - einfo -} diff --git a/sys-libs/nss-mysql/nss-mysql-0.43.ebuild b/sys-libs/nss-mysql/nss-mysql-0.43.ebuild deleted file mode 100644 index b2fac15b7201..000000000000 --- a/sys-libs/nss-mysql/nss-mysql-0.43.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/nss-mysql/nss-mysql-0.43.ebuild,v 1.14 2005/01/03 00:25:23 ciaranm Exp $ - -DESCRIPTION="NSS MySQL Module" -HOMEPAGE="http://savannah.gnu.org/projects/nss-mysql" -SRC_URI="http://savannah.gnu.org/download/nss-mysql/nss-mysql.pkg/0.43/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~x86" -IUSE="static" - -DEPEND="virtual/libc - >=dev-db/mysql-3.23.51-r1" -RDEPEND="${DEPEND} - !sys-libs/libnss-mysql" - -src_compile() { - use static && myconf="--enable-static" - ./configure ${myconf} \ - --host=${CHOST} \ - --prefix=/usr \ - --infodir=/usr/share/info \ - --sysconfdir=/etc/nss-mysql \ - --libdir=/lib \ - --mandir=/usr/share/man || die "./configure failed" - emake || die - cp -a ${FILESDIR}/gentoo.sql.${P}.gentoo ${S}/gentoo.sql -} - -src_install () { - make DESTDIR=${D} install || die - dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README SHADOW THANKS TODO UPGRADE sample.sql gentoo.sql -} - -pkg_postinst() { - einfo - einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" - einfo "to autosetup nss-mysql and the mysql tables." - einfo "You should then edit your /etc/nsswitch.conf file to activate nss_mysql" - einfo "and suit your intentions. Below is an partial example:" - einfo - einfo "passwd: files mysql" - einfo "shadow: files mysql" - einfo "group: files mysql" - einfo -} - -pkg_config() { - echo "In order to continue we'll need to know a MySQL username with enough" - echo "privleges to create databases, mysql-users and grant privleges," - echo "typically a user named root." - echo - echo -n "MySQL-root-user [root]: " - read USERNAME - if [ -z "${USERNAME}" ]; then - USERNAME="root" - fi - echo -n "Is it required to use a password in order to access mysql with ${USERNAME} [Y/n]: " - read NEEDPASS - POPT="-p" - if [ "${NEEDPASS}" == "n" ]; then - POPT="" - fi - cmd="${ROOT}/usr/bin/makepasswd --minchars=10 --maxchars=12" - if [ -f "${cmd}" ]; then - PASS=`$cmd` - PAS2=`$cmd` - fi - cmd="${ROOT}/usr/bin/passook" - if [ -f "${cmd}" ]; then - PASS=`$cmd` - PAS2=`$cmd` - fi - if [ -z "${PASS}" ]; then - echo ""; - echo "Didn't manage to find a passwd-generator, please type a passwords of your choise"; - echo -n "Shadow-access-password (root-only): "; - read PASS - echo -n "Select-public-info-password: "; - read PAS2 - fi - if [ -z "${PAS2}" ]; then - PAS2="badbadbadPASSWDMHALL20020715"; - fi - if [ -z "${PASS}" ]; then - einfo "I will not accept that you leave that the shadow-access-password empty" - die - fi - if [ ! -z "$POPT" ]; then - einfo "Pass the mysql-users \"${USERNAME}\"s password to mysql:"; - echo -n "mysql> " - fi - ( gunzip -c /usr/share/doc/${P}/gentoo.sql.gz | sed s/another_password/${PASS}/ | sed s/"'password'"/"'${PAS2}'"/ | mysql ${POPT} -u ${USERNAME} ) || die - FILE="/etc/nss-mysql/nss-mysql-root.conf"; sed -e s/"shadow.db_password ="/"shadow.db_password = ${PASS};#oldpass:"/ < ${FILE} | cat > ${FILE} - FILE="/etc/nss-mysql/nss-mysql.conf"; sed -e s/"users.db_password ="/"users.db_password = ${PAS2};#oldpass:"/ < ${FILE} | cat > ${FILE} - chown -R 0:0 /etc/nss-mysql - chmod 600 /etc/nss-mysql/nss-mysql-root.conf - chmod 644 /etc/nss-mysql/nss-mysql.conf - einfo "nss_mysql-configfiles and mysql-tables should now be setup" - einfo "remember to activate nss-mysql in /etc/nsswitch.conf with someting simillar to:" - einfo - einfo "passwd: files mysql" - einfo "shadow: files mysql" - einfo "group: files mysql" - einfo -} |