diff options
author | Karol Wojtaszek <sekretarz@gentoo.org> | 2006-01-29 21:23:29 +0000 |
---|---|---|
committer | Karol Wojtaszek <sekretarz@gentoo.org> | 2006-01-29 21:23:29 +0000 |
commit | 7acca1b0761cd35e28fb30b706370788a9e308af (patch) | |
tree | bfffd7776e10af46b387acee46f912b4ec236f94 /dev-db | |
parent | Version bump, 2.2.4 stable on x86. (diff) | |
download | gentoo-2-7acca1b0761cd35e28fb30b706370788a9e308af.tar.gz gentoo-2-7acca1b0761cd35e28fb30b706370788a9e308af.tar.bz2 gentoo-2-7acca1b0761cd35e28fb30b706370788a9e308af.zip |
Version bump, release fixes security problems, bug #120343
(Portage version: 2.1_pre4)
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/firebird/ChangeLog | 9 | ||||
-rw-r--r-- | dev-db/firebird/Manifest | 50 | ||||
-rw-r--r-- | dev-db/firebird/files/digest-firebird-1.5.3 | 3 | ||||
-rw-r--r-- | dev-db/firebird/files/firebird-1.5-build.patch (renamed from dev-db/firebird/files/firebird-1.5.2-build.patch) | 0 | ||||
-rw-r--r-- | dev-db/firebird/firebird-1.5.2.ebuild | 4 | ||||
-rw-r--r-- | dev-db/firebird/firebird-1.5.3.ebuild | 223 |
6 files changed, 273 insertions, 16 deletions
diff --git a/dev-db/firebird/ChangeLog b/dev-db/firebird/ChangeLog index 533f030cb198..3dae751f5f00 100644 --- a/dev-db/firebird/ChangeLog +++ b/dev-db/firebird/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-db/firebird # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.36 2006/01/24 22:10:44 sekretarz Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.37 2006/01/29 21:23:29 sekretarz Exp $ + +*firebird-1.5.3 (29 Jan 2006) + + 29 Jan 2006; Karol Wojtaszek <sekretarz@gentoo.org> + -files/firebird-1.5.2-build.patch, +files/firebird-1.5-build.patch, + firebird-1.5.2.ebuild, +firebird-1.5.3.ebuild: + Version bump, release fixes security problems, bug #120343 24 Jan 2006; Karol Wojtaszek <sekretarz@gentoo.org> +files/firebird-1.5.2-build.patch, firebird-1.5.2.ebuild: diff --git a/dev-db/firebird/Manifest b/dev-db/firebird/Manifest index 9d46c8d39b6f..c25fb9b285f5 100644 --- a/dev-db/firebird/Manifest +++ b/dev-db/firebird/Manifest @@ -1,24 +1,48 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 ab8d5674bb1dcd697a893f8c88ce45fa ChangeLog 5368 +MD5 9e6379bb93c1f0987b744e8827ecec6e ChangeLog 5634 +RMD160 87acf426418bd7d7987058102ac2bed5681916b0 ChangeLog 5634 +SHA256 c8f5a9e57251e59b58f78c2e78037bbc8349c170fff05643530be27c62bea02b ChangeLog 5634 MD5 d3278f869be37481ddde143f5ee98c4a files/70firebird 50 +RMD160 ebfc2e7a38dbd95b3df0dc4c8a757bd089f69807 files/70firebird 50 +SHA256 ca3ca56c53490ac6f849ce78cd1240fc52334f25c8d3841eef1560bed2a80d03 files/70firebird 50 MD5 d3278f869be37481ddde143f5ee98c4a files/70firebird-1.5.0 50 +RMD160 ebfc2e7a38dbd95b3df0dc4c8a757bd089f69807 files/70firebird-1.5.0 50 +SHA256 ca3ca56c53490ac6f849ce78cd1240fc52334f25c8d3841eef1560bed2a80d03 files/70firebird-1.5.0 50 MD5 606e690fe61535cc02d7314616e263fb files/digest-firebird-1.5.1 73 +RMD160 8a5c47f819c00653f9ee1afcd7918a5647857ae9 files/digest-firebird-1.5.1 73 +SHA256 290694b1e5f471875fd9a9f7c30467c9ff2b2074319ec914f188a9a454964fe1 files/digest-firebird-1.5.1 73 MD5 9019505bedbd32c5cec6700c075f3872 files/digest-firebird-1.5.2 73 +RMD160 d7ad3637e5a90855c82358b43028ca2615a33137 files/digest-firebird-1.5.2 73 +SHA256 cc8d726347ba54cb5bbc2087f8131c9ba5ddb8f8910c6fa63305ba68ec558028 files/digest-firebird-1.5.2 73 +MD5 3a59103ce90feabcf8fe8bbb7ae29f73 files/digest-firebird-1.5.3 265 +RMD160 957fbcdffd158f0a4cd321c3a51efe2cf78a7d29 files/digest-firebird-1.5.3 265 +SHA256 6ae86451e4f7a7d408921e0fa8a7dcd6648698889569f49ff9b65d1361385a72 files/digest-firebird-1.5.3 265 +MD5 51a8d891eaaaf720cf57d3d1686735f1 files/firebird-1.5-build.patch 2125 +RMD160 8ca946aea594b5aff1c963cc1cf87a88e950d39b files/firebird-1.5-build.patch 2125 +SHA256 d92063ce40ee359df1662dc4fbb079fa59ec30f0c9924a8942a0e0ceb806df11 files/firebird-1.5-build.patch 2125 MD5 5b28cc81eff2c59fbee652dc2c6ed483 files/firebird-1.5.0.xinetd 425 +RMD160 df129f2e031ecd5ab885cb9a0c65a6c8d459a5f2 files/firebird-1.5.0.xinetd 425 +SHA256 a8d918c64837a52d6a94650e9b39bc2279662adbad1e830767e5171a15efe6ce files/firebird-1.5.0.xinetd 425 MD5 5bc644b4558c11069e2a946e029d70bb files/firebird-1.5.1-gcc34.patch 5906 -MD5 51a8d891eaaaf720cf57d3d1686735f1 files/firebird-1.5.2-build.patch 2125 +RMD160 7249ee6156044a20fd8b93b870b745587ef5b3ea files/firebird-1.5.1-gcc34.patch 5906 +SHA256 b05be878185ae46564994b700477882fd9a2217546a441099edd1016c8b694ac files/firebird-1.5.1-gcc34.patch 5906 MD5 c5f5e6bae2cae891269931331e69f1ca files/firebird.conf.d 80 +RMD160 bcee53ba9cde8822f3c4f980e274bc4958a6fc30 files/firebird.conf.d 80 +SHA256 ad4590c1fc81006759ae801086aa73567f82799bad8275c91d7ddb97c26f7f2f files/firebird.conf.d 80 MD5 19238be258dea758cf3f082df5ae813a files/firebird.init.d 697 +RMD160 eb18c898dcb7d5e86906c7ad78f4ea9210b13b89 files/firebird.init.d 697 +SHA256 6585f1fba391fa49157975cf81ac7922648fc2749e326eac3b9ed571f6c43c83 files/firebird.init.d 697 MD5 b0d6de21d0e14d41983d440d5675e9d5 files/firebird.xinetd 206 +RMD160 982a38df26c870ba634576f6188683478d2a69da files/firebird.xinetd 206 +SHA256 b129b0653cacd81968986b5514ba78829deeab19972cec18271a6b354247e494 files/firebird.xinetd 206 MD5 667b422797ea74ed41b2c5bf70059b02 firebird-1.5.1.ebuild 6498 -MD5 b99ac816865555c28614427f18350d26 firebird-1.5.2.ebuild 6504 +RMD160 af6b57d60278184cb89122cfa9b903c783b4c9dc firebird-1.5.1.ebuild 6498 +SHA256 94a30387ce0218bc75ff72cdd9b7e1b0d9cd60bed349046c4673276736fd0dd1 firebird-1.5.1.ebuild 6498 +MD5 b602bc02ba16868bf3a72e9040a95ec5 firebird-1.5.2.ebuild 6509 +RMD160 b43c4b045dc4347f9724c1c7b173f4752a3a2efd firebird-1.5.2.ebuild 6509 +SHA256 c3a0666d5354497a147750dc64fc8ad8c4c31babfa50e1f3350543f479b3645d firebird-1.5.2.ebuild 6509 +MD5 68b5005941851858af8c761ce02d508a firebird-1.5.3.ebuild 6509 +RMD160 b48ed72ddc91f0d7749d10a99e027225ccd33e2e firebird-1.5.3.ebuild 6509 +SHA256 cd71a83cb3273abe2b3ee2d1d7116703fed7c8018cd361c37434fc397b82c159 firebird-1.5.3.ebuild 6509 MD5 70eaf71c2018b87fe06aed9df3799509 metadata.xml 225 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2 (GNU/Linux) - -iD8DBQFD1rR2ub4+zaPCR/oRAviwAJ9vTUCNnO4rFiSfnrOQ7xTAP23wNgCeJkGn -hgdgM6CkQMsUR695isZ9z44= -=8kqi ------END PGP SIGNATURE----- +RMD160 7c157805d934c18e77b4ed4ebd28870843ec0b81 metadata.xml 225 +SHA256 d16e8c5dfbf984681d500dad1063583ba0a21e0b73da359178bb87c09d951c9c metadata.xml 225 diff --git a/dev-db/firebird/files/digest-firebird-1.5.3 b/dev-db/firebird/files/digest-firebird-1.5.3 new file mode 100644 index 000000000000..0e5d9e50886b --- /dev/null +++ b/dev-db/firebird/files/digest-firebird-1.5.3 @@ -0,0 +1,3 @@ +MD5 559d005ab6622274f9448687f930393c firebird-1.5.3.4870.tar.bz2 5055973 +RMD160 3833574f8c2d996bfb06b346a5d22a88d9923425 firebird-1.5.3.4870.tar.bz2 5055973 +SHA256 16880405d6e321a70e80c6e6fb4ed8429a692c43b8a7b59a676cf7d2162d2023 firebird-1.5.3.4870.tar.bz2 5055973 diff --git a/dev-db/firebird/files/firebird-1.5.2-build.patch b/dev-db/firebird/files/firebird-1.5-build.patch index 5e0ae7305586..5e0ae7305586 100644 --- a/dev-db/firebird/files/firebird-1.5.2-build.patch +++ b/dev-db/firebird/files/firebird-1.5-build.patch diff --git a/dev-db/firebird/firebird-1.5.2.ebuild b/dev-db/firebird/firebird-1.5.2.ebuild index f44783d99288..fec0fed878d7 100644 --- a/dev-db/firebird/firebird-1.5.2.ebuild +++ b/dev-db/firebird/firebird-1.5.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/firebird-1.5.2.ebuild,v 1.7 2006/01/24 22:10:44 sekretarz Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/firebird-1.5.2.ebuild,v 1.8 2006/01/29 21:23:29 sekretarz Exp $ inherit flag-o-matic eutils @@ -29,7 +29,7 @@ src_unpack() { unpack ${A} cd ${S} - epatch ${FILESDIR}/${P}-build.patch + epatch ${FILESDIR}/${PN}-1.5-build.patch } src_compile() { diff --git a/dev-db/firebird/firebird-1.5.3.ebuild b/dev-db/firebird/firebird-1.5.3.ebuild new file mode 100644 index 000000000000..e1391adc9265 --- /dev/null +++ b/dev-db/firebird/firebird-1.5.3.ebuild @@ -0,0 +1,223 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/firebird-1.5.3.ebuild,v 1.1 2006/01/29 21:23:29 sekretarz Exp $ + +inherit flag-o-matic eutils + +extra_ver="4870" +DESCRIPTION="A relational database offering many ANSI SQL-99 features" +HOMEPAGE="http://firebird.sourceforge.net/" +SRC_URI="mirror://sourceforge/firebird/${P}.${extra_ver}.tar.bz2" + +LICENSE="Interbase-1.0" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~sparc ~x86" +IUSE="inetd" +RESTRICT="nouserpriv" + +DEPEND="virtual/libc + inetd? ( virtual/inetd )" + +S=${WORKDIR}/${P}.${extra_ver} + +pkg_setup() { + enewgroup firebird 450 + enewuser firebird 450 /bin/bash /opt/firebird firebird +} + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/${PN}-1.5-build.patch +} + +src_compile() { + # fix bug #33584 + #strip-flags -funroll-loops + # but Meir intended "filter-flags -funroll-loops"; awaiting bug reports... + + filter-flags -fprefetch-loop-arrays + filter-mfpmath sse + + local myconf="--prefix=/opt/firebird --with-editline" + use inetd || myconf="${myconf} --enable-superserver" + + NOCONFIGURE=1 + ./autogen.sh ${myconf} || die "couldn't run autogen.sh" + find . -type f -exec sed -i -e "s/-lcurses/-lncurses/g" {} \; + econf ${myconf} || die "./configure failed" + emake -j 1 || die "error during make" +} + +src_install() { + cd ${S}/gen + make -f Makefile.install tarfile || die "Can't create buildroot tar file" + cd ${D} + tar zxpf ${S}/gen/Firebird?S-*/buildroot.tar.gz + + dodoc ${D}/opt/firebird/{README,WhatsNew,doc/*} + docinto examples + dodoc ${D}/opt/firebird/examples/* + docinto sql.extensions + dodoc ${D}/opt/firebird/doc/sql.extensions/* + + rm -r ${D}/opt/firebird/{README,WhatsNew,doc,misc} + rm -r ${D}/opt/firebird/examples + + if use inetd ; then + insinto /etc/xinetd.d ; newins ${FILESDIR}/${PN}-1.5.0.xinetd firebird + else + exeinto /etc/init.d ; newexe ${FILESDIR}/${PN}.init.d firebird + insinto /etc/conf.d ; newins ${FILESDIR}/firebird.conf.d firebird + fperms 640 /etc/conf.d/firebird + fi + insinto /etc/env.d ; newins ${FILESDIR}/70${PN} 70firebird + + # Following is adapted from postinstall.sh + + # make sure everything is owned by firebird + chown -R firebird:firebird ${D}/opt/firebird + + # make sure permissions are set + chmod -R o= ${D}/opt/firebird + + # fix directories + find ${D}/opt/firebird -print -type d | xargs chmod o=rx + + # set permissions for /bin + cd ${D}/opt/firebird/bin + chmod ug=rx,o= * + chmod a=rx isql + chmod a=rx qli + + use inetd && chmod ug=rxs,o= ${D}/opt/firebird/bin/{fb_lock_mgr,gds_drop,fb_inet_server} + chmod u=rw,go=r ${D}/opt/firebird/{aliases.conf,firebird.conf} + chmod ug=rw,o= ${D}/opt/firebird/{security.fdb,help/help.fdb} + + for i in include lib UDF intl; do chmod a=r ${D}/opt/firebird/${i}/*; done + chmod ug=rx,o= ${D}/opt/firebird/{intl/fbintl,UDF/fbudf.so,UDF/ib_udf.so} + + # create links for back compatibility + dosym /opt/firebird/lib/libfbclient.so /usr/lib/libgds.so + dosym /opt/firebird/lib/libfbclient.so /usr/lib/libgds.so.0 + dosym /opt/firebird/lib/libfbclient.so /opt/firebird/lib/libgds.so + dosym /opt/firebird/lib/libfbclient.so /opt/firebird/lib/libgds.so.0 + + # move and link config files to /etc/firebird so they'll be protected + dodir /etc/firebird + mv ${D}/opt/firebird/{security.fdb,aliases.conf,firebird.conf} ${D}/etc/firebird + dosym /etc/firebird/security.fdb /opt/firebird/security.fdb + dosym /etc/firebird/aliases.conf /opt/firebird/aliases.conf + dosym /etc/firebird/firebird.conf /opt/firebird/firebird.conf +} + +pkg_postinst() { + einfo + einfo "1. If haven't done so already, please run:" + einfo + einfo " \"emerge --config =${PV}\"" + einfo + einfo " to create lockfiles, set permissions and more" + einfo + einfo "2. Firebird now runs with it's own user. Please remember to" + einfo " set permissions to firebird:firebird on databases you " + einfo " already have (if any)." + einfo + + if ! use inetd + then + einfo "3. You've built the stand alone deamon version," + einfo " SuperServer. If you were using pre 1.5.0 ebuilds" + einfo " you're probably have one installed via xinetd. please" + einfo " remember to disable it (usually in /etc/xinetd.d/firebird)," + einfo " since the current one has it's own init script under" + einfo " /etc/init.d" + fi +} + +pkg_config() { + cd /opt/firebird + + # Create Lock files + for i in isc_init1 isc_lock1 isc_event1 + do + FileName=$i.`hostname` + touch $FileName + chown firebird:firebird $FileName + chmod ug=rw,o= $FileName + done + + # Create log + if [ ! -h firebird.log ] + then + if [ -f firebird.log ] + then + mv firebird.log /var/log + else + touch /var/log/firebird.log + chown firebird:firebird /var/log/firebird.log + chmod ug=rw,o= /var/log/firebird.log + fi + + # symlink the log to /var/log + ln -s /var/log/firebird.log firebird.log + fi + + # add gds_db to /etc/services + if [ -z "`grep gds_db /etc/services`" ] + then + echo -e "#\n#Service added for gds_db (firebird)\n#" >> /etc/services + echo "gds_db 3050/tcp" >> /etc/services + einfo "added gds_db to /etc/services" + fi + + # if found /etc/isc4.gdb from previous install, backup, and restore as + # /etc/security.fdb + if [ -f /etc/firebird/isc4.gdb ] + then + # if we have scurity.fdb already, back it 1st + if [ -f /etc/firebird/security.fdb ] + then + cp /etc/firebird/security.fdb /etc/firebird/security.fdb.old + fi + gbak -B /etc/firebird/isc4.gdb /etc/firebird/isc4.gbk + gbak -R /etc/firebird/isc4.gbk /etc/firebird/security.fdb + mv /etc/firebird/isc4.gdb /etc/firebird/isc4.gdb.old + rm /etc/firebird/isc4.gbk + + # make sure they are readable only to firebird + chown firebird:firebird /etc/firebird/{isc4.*,security.*} + chmod 660 /etc/firebird/{isc4.*,security.*} + + einfo + einfo "Converted old isc4.gdb to security.fdb, isc4.gdb has been " + einfo "renamed to isc4.gdb.old. if you had previous security.fdb, " + einfo "it's backed to security.fdb.old (all under /etc/firebird)." + einfo + fi + + # we need to enable local access to the server + if [ ! -f /etc/hosts.equiv ] + then + touch /etc/hosts.equiv + chown root:0 /etc/hosts.equiv + chmod u=rw,go=r /etc/hosts.equiv + fi + + if [ -z "`grep 'localhost$' /etc/hosts.equiv`" ] + then + echo "localhost" >> /etc/hosts.equiv + einfo "Added localhost to /etc/hosts.equiv" + fi + + HS_NAME=`hostname` + if [ -z "`grep ${HS_NAME} /etc/hosts.equiv`" ] + then + echo "${HS_NAME}" >> /etc/hosts.equiv + einfo "Added ${HS_NAME} to /etc/hosts.equiv" + fi + + einfo "If you're using UDFs, please remember to move them" + einfo "to /opt/firebird/UDF" +} |