diff options
author | Chuck Short <zul@gentoo.org> | 2003-12-28 23:07:05 +0000 |
---|---|---|
committer | Chuck Short <zul@gentoo.org> | 2003-12-28 23:07:05 +0000 |
commit | 3429049cb9582235e6296633abdd3bac7d3e4044 (patch) | |
tree | 82515f1d4be662748f247ee78d7f40d578c8c16e | |
parent | Initial version, closes #10598. (diff) | |
download | gentoo-2-3429049cb9582235e6296633abdd3bac7d3e4044.tar.gz gentoo-2-3429049cb9582235e6296633abdd3bac7d3e4044.tar.bz2 gentoo-2-3429049cb9582235e6296633abdd3bac7d3e4044.zip |
Initial version, closes #10598.
-rw-r--r-- | net-irc/oer-mysql/ChangeLog | 10 | ||||
-rw-r--r-- | net-irc/oer-mysql/Manifest | 4 | ||||
-rw-r--r-- | net-irc/oer-mysql/files/digest-oer-mysql-1.0.42 | 1 | ||||
-rw-r--r-- | net-irc/oer-mysql/metadata.xml | 5 | ||||
-rw-r--r-- | net-irc/oer-mysql/oer-mysql-1.0.42.ebuild | 97 |
5 files changed, 116 insertions, 1 deletions
diff --git a/net-irc/oer-mysql/ChangeLog b/net-irc/oer-mysql/ChangeLog new file mode 100644 index 000000000000..2159bb08eac1 --- /dev/null +++ b/net-irc/oer-mysql/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-irc/oer-mysql +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/oer-mysql/ChangeLog,v 1.1 2003/12/28 23:06:52 zul Exp $ + +*oer-mysql-1.0.42 (28 Dec 2003) + + 28 Dec 2003; Chuck Short <zul@gentoo.org> oer-mysql-1.0.42.ebuild: + Initial release, ebuild written by pasi.calminen@hut.fi. + Closes #10598. + diff --git a/net-irc/oer-mysql/Manifest b/net-irc/oer-mysql/Manifest index 906b74d81a90..dccceb430f1d 100644 --- a/net-irc/oer-mysql/Manifest +++ b/net-irc/oer-mysql/Manifest @@ -1,2 +1,4 @@ -MD5 ae0eb4cf7f07dd0e3e6f41947af1c849 oer-mysql-1.0.42.ebuild 2345 +MD5 8c585b0b3a03ff9945dcf80f9b4c11db ChangeLog 392 +MD5 ba49e260d791441c1d71c471923174f8 oer-mysql-1.0.42.ebuild 2441 +MD5 44c39c6ad372a8e5a5e7ee3311f703a7 metadata.xml 160 MD5 d2054296b7eda8cf7e857eedf0af8a7b files/digest-oer-mysql-1.0.42 68 diff --git a/net-irc/oer-mysql/files/digest-oer-mysql-1.0.42 b/net-irc/oer-mysql/files/digest-oer-mysql-1.0.42 new file mode 100644 index 000000000000..a91349f3c7b2 --- /dev/null +++ b/net-irc/oer-mysql/files/digest-oer-mysql-1.0.42 @@ -0,0 +1 @@ +MD5 0191b3a9da1a34497022fd55da1d9291 oer+MySQL-1.0-42.tar.gz 154851 diff --git a/net-irc/oer-mysql/metadata.xml b/net-irc/oer-mysql/metadata.xml new file mode 100644 index 000000000000..6ef15e900f17 --- /dev/null +++ b/net-irc/oer-mysql/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-irc</herd> +</pkgmetadata> diff --git a/net-irc/oer-mysql/oer-mysql-1.0.42.ebuild b/net-irc/oer-mysql/oer-mysql-1.0.42.ebuild new file mode 100644 index 000000000000..f096a0b94d72 --- /dev/null +++ b/net-irc/oer-mysql/oer-mysql-1.0.42.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/oer-mysql/oer-mysql-1.0.42.ebuild,v 1.1 2003/12/28 23:06:52 zul Exp $ +IUSE="" +PN="oer+MySQL" +S=${WORKDIR}/${PN}-dist + +DESCRIPTION="Free to use GPL'd IRC bot" +HOMEPAGE="http://oer.equnet.org/" +SRC_URI="http://oer.equnet.org/testing/${PN}-1.0-42.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +RDEPEND="virtual/glibc + >=dev-db/mysql-3.23.52-r1 + >=sys-apps/sed-3.02.80-r4" +DEPEND="${RDEPEND}" + +src_compile() { + + CFLAGS=${CFLAGS} \ + ./configure --host=${CHOST} \ + --with-mysql=/usr || die "configure failed" + + cp Makefile Makefile.orig + sed -e "s:-O2:${CFLAGS}:" < Makefile.orig > Makefile + + emake mycrypt || die + emake || die "make failed" + + # Make ebuild config work properly. + cp ${S}/pre_install.sh ${S}/pre_install.sh.orig + sed -e "s:LOGTO=\"pre_install.log\":LOGTO=\"\/etc\/oer\/pre_install.log\":" \ + -e "s:CRYPT=\`.\/mycrypt:CRYPT=\`\/usr\/share\/tools\/mycrypt:" \ + -e "s:sample-configuration\/oer+MySQL.conf:\/etc\/oer\/oer+MySQL.conf:" \ + < ${S}/pre_install.sh.orig > ${S}/pre_install.sh + +} + +src_install() { + + dodir /usr/bin \ + /etc/oer \ + /usr/share/oer + + cp ${S}/oer+MySQL ${D}/usr/bin + cp -r ${S}/tools ${S}/scripts ${D}/usr/share/oer + cp ${S}/mycrypt ${S}/pre_install.sh ${D}/usr/share/oer/tools + +} + +pkg_postinst() { + + if ! groupmod oer + then + einfo "Creating oer group (gid=74)." + groupadd oer -g 74 || die "failed to create oer group (gid=74)" + fi + if ! id oer + then + einfo "Creating oer user (uid=74)." + useradd -d /usr/share/oer -g oer -s /bin/false -u 74 oer \ + || die "failed to create oer user (uid=74)" + fi + + chown -R oer:oer /etc/oer + chmod 0700 /etc/oer + chown oer:oer /usr/bin/oer+MySQL + einfo "Setting /usr/bin/oer+MySQL suid oer." + chmod 6755 /usr/bin/oer+MySQL + + echo + + einfo + einfo "To create MySQL database and simple config for your bot execute:" + einfo + einfo "# ebuild /var/db/pkg/net-irc/${P}/${P}.ebuild config" + einfo + einfo "NOTICE: Your mysql server must be running when executing the command above." + einfo +} + +pkg_config() { + + cd /usr/share/oer + tools/pre_install.sh /usr/bin + chown oer:oer /etc/oer/oer+MySQL.conf + chmod 0600 /etc/oer/oer+MySQL.conf /etc/oer/pre_install.log + + einfo + einfo "If all went well, you can start you bot by typing:" + einfo + einfo "# oer+MySQL -f /etc/oer/oer+MySQL.conf" + einfo + +} |