diff options
author | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-06 17:58:39 +0000 |
---|---|---|
committer | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-06 17:58:39 +0000 |
commit | 28e0a60f9580903e0574df4e0faedd6d966c4b1c (patch) | |
tree | 698b3edc179c5945ac1eb6f53955a5c5ede1e092 /sys-block/partimage | |
parent | sys-apps/partimage to sys-block/partimage (diff) | |
download | gentoo-2-28e0a60f9580903e0574df4e0faedd6d966c4b1c.tar.gz gentoo-2-28e0a60f9580903e0574df4e0faedd6d966c4b1c.tar.bz2 gentoo-2-28e0a60f9580903e0574df4e0faedd6d966c4b1c.zip |
Moved from sys-apps/partimage to sys-block/partimage.
Diffstat (limited to 'sys-block/partimage')
19 files changed, 857 insertions, 0 deletions
diff --git a/sys-block/partimage/ChangeLog b/sys-block/partimage/ChangeLog new file mode 100644 index 000000000000..98fa0b8ecafe --- /dev/null +++ b/sys-block/partimage/ChangeLog @@ -0,0 +1,88 @@ +# ChangeLog for sys-apps/partimage +# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/ChangeLog,v 1.1 2005/03/06 17:58:39 ciaranm Exp $ + +*partimage-0.6.4-r1 (06 Mar 2005) + + 06 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> +metadata.xml, + +files/partimage-0.6.4-chown.patch, + +files/partimage-0.6.4-fixserverargs.diff, + +files/partimage-0.6.4-nodumbpermchecks.diff, + +files/partimage-0.6.4-not_install_info.patch, +files/partimaged.conf, + +files/partimaged.init, +files/partimagedusers.5, +files/servercert.cnf, + +partimage-0.6.2.ebuild, +partimage-0.6.4-r1.ebuild, + +partimage-0.6.4-r2.ebuild, +partimage-0.6.4.ebuild: + Moved from sys-apps/partimage to sys-block/partimage. + +*partimage-0.6.4-r2 (16 Jan 2005) + + 16 Jan 2005; Christian Zoffoli <xmerlin@gentoo.org> metadata.xml, + +files/partimage-0.6.4-chown.patch, + +files/partimage-0.6.4-fixserverargs.diff, + +files/partimage-0.6.4-not_install_info.patch, +files/partimaged.conf, + +files/partimaged.init, +files/partimagedusers.5, partimage-0.6.2.ebuild, + partimage-0.6.4-r1.ebuild, +partimage-0.6.4-r2.ebuild, + partimage-0.6.4.ebuild: + massive cleanup in partimage-0.6.4-r2.ebuild, merged swift@gentoo.org patch to + fix -d flag in partimaged (bug #65717). + + 16 Jan 2005; Christian Zoffoli <xmerlin@gentoo.org> metadata.xml, + +files/partimage.1, +files/partimaged.8, +files/partimaged.conf, + +files/partimaged.init, +files/partimagedusers.5, partimage-0.6.2.ebuild, + partimage-0.6.4-r1.ebuild, partimage-0.6.4.ebuild: + added init script and conf file posted by Sven Vermeulen <swift@gentoo.org> + (bug #59873). added man pages partimage.1 partimaged.8 partimagedusers.5 + + 28 Oct 2004; Simon Stelling <blubb@gentoo.org> partimage-0.6.2.ebuild, + partimage-0.6.4-r1.ebuild, partimage-0.6.4.ebuild: + removing ~amd64, broken (see bug #69231) + + 30 Jun 2004; Aron Griffis <agriffis@gentoo.org> partimage-0.6.2.ebuild, + partimage-0.6.4-r1.ebuild, partimage-0.6.4.ebuild: + glibc -> libc + +*partimage-0.6.4-r1 (14 May 2004) + + 14 May 2004; Robin H. Johnson <robbat2@gentoo.org> + partimage-0.6.4-r1.ebuild, files/partimage-0.6.4-nodumbpermchecks.diff: + fix bug #49048. + + 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> partimage-0.6.4.ebuild: + Add inherit eutils + + 26 Apr 2004; Aron Griffis <agriffis@gentoo.org> partimage-0.6.2.ebuild, + partimage-0.6.4.ebuild: + Add die following econf for bug 48950 + + 26 Apr 2004; David Holm <dholm@gentoo.org> partimage-0.6.4.ebuild: + Added to ~ppc. + + 26 Apr 2004; Robin H. Johnson <robbat2@gentoo.org> partimage-0.6.4.ebuild: + fix thinko glitch, bug #49017, and put it back in ~x86 since it got in x86 + accidently. + +*partimage-0.6.4 (25 Apr 2004) + + 25 Apr 2004; Robin H. Johnson <robbat2@gentoo.org> partimage-0.6.4.ebuild, + files/servercert.cnf: + fix bugs #24727, #14687. massive new stuff for the new version to build + properly, and a big pkg_config section for SSL certs. + + 28 Oct 2003; John Mylchreest <johnm@gentoo.org>; partimage-0.6.2.ebuild: + fixing chown issue + +*partimage-0.6.2 (22 Dec 2002) + + 14 May 2003; Robin Johnson <robbat2@gentoo.org>: partimage-0.6.2.ebuild + Updated ebuild to use SF mirrors and cleaned it up some. + Also moved to stable after some testing. + + 22 Dec 2002; Daniel Robbins <drobbins@gentoo.org>: added initial release. The + original version of this ebuild was submitted in bug #11804 by Derek Young + (d@young.hostforweb.com.) Thank you Derek for submitting this ebuild. Several + fixes were made to this ebuild but the basic approach remains intact. One + thing that make not be fully functional is the creation of SSL certificates, + which according to Derek requires the "partimag" user (hacked out of the + Makefile) to exist. Files originally intended to be owned by "partimag" are + owned by root in this ebuild. + diff --git a/sys-block/partimage/Manifest b/sys-block/partimage/Manifest new file mode 100644 index 000000000000..c5d2ee0db632 --- /dev/null +++ b/sys-block/partimage/Manifest @@ -0,0 +1,28 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 27408a9e0668010748bebef852e8824e partimage-0.6.4-r2.ebuild 3911 +MD5 2b233acc24b779d853f9ff395e523ca8 partimage-0.6.2.ebuild 1682 +MD5 8273e1c5e25099c464ff6c9165e44a68 partimage-0.6.4.ebuild 4162 +MD5 af9dc054f377124fc4dabd5f0d2cab84 partimage-0.6.4-r1.ebuild 4497 +MD5 b9140efc2e3e211e1e9a045f97033693 ChangeLog 3310 +MD5 6b4c83400b7b7a44afb53e1a7ac388af metadata.xml 300 +MD5 eb53aad37dc8ae6ed131a1502989446a files/partimage-0.6.4-fixserverargs.diff 366 +MD5 938ecb802f7e26ff8df88404f0648c7c files/partimagedusers.5 1263 +MD5 3bbd1e2fc0dd50034c600d01d08e8997 files/digest-partimage-0.6.4-r1 68 +MD5 3bbd1e2fc0dd50034c600d01d08e8997 files/digest-partimage-0.6.4-r2 68 +MD5 8fea14f38734fb0bbf6239671f5fff4b files/partimage-0.6.4-chown.patch 1660 +MD5 e723db4854081a8495b84f4b27ff813a files/servercert.cnf 1099 +MD5 58c44cd013afb15de340039a5de24b60 files/partimage-0.6.4-not_install_info.patch 1200 +MD5 7954fdb6067557fdd593a66ecae93ab3 files/partimage-0.6.4-nodumbpermchecks.diff 817 +MD5 6fd04332b7f640a2aa71f208d2bd2dc8 files/digest-partimage-0.6.2 68 +MD5 3bbd1e2fc0dd50034c600d01d08e8997 files/digest-partimage-0.6.4 68 +MD5 2c13eb13367bfb6ea193adb9215e565e files/partimaged.conf 423 +MD5 34dfbf851d81c1d467a4a438cacd21c1 files/partimaged.init 755 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.9.10 (GNU/Linux) + +iD8DBQFB6rf/I1lqEGTUzyQRAtsGAJkBIqnFLWHC+6bqgZZdERSArMpvxQCfQ5Z4 +j7QxWValqYw96dq+SElV8bk= +=KNOx +-----END PGP SIGNATURE----- diff --git a/sys-block/partimage/files/digest-partimage-0.6.2 b/sys-block/partimage/files/digest-partimage-0.6.2 new file mode 100644 index 000000000000..6d5fcacac91f --- /dev/null +++ b/sys-block/partimage/files/digest-partimage-0.6.2 @@ -0,0 +1 @@ +MD5 c52ca81f23876cf9baa0dfcaa44d52ac partimage-0.6.2.tar.bz2 668265 diff --git a/sys-block/partimage/files/digest-partimage-0.6.4 b/sys-block/partimage/files/digest-partimage-0.6.4 new file mode 100644 index 000000000000..f525923985b4 --- /dev/null +++ b/sys-block/partimage/files/digest-partimage-0.6.4 @@ -0,0 +1 @@ +MD5 ee56df4a6be1f78f53dc48454655aa8a partimage-0.6.4.tar.bz2 654707 diff --git a/sys-block/partimage/files/digest-partimage-0.6.4-r1 b/sys-block/partimage/files/digest-partimage-0.6.4-r1 new file mode 100644 index 000000000000..f525923985b4 --- /dev/null +++ b/sys-block/partimage/files/digest-partimage-0.6.4-r1 @@ -0,0 +1 @@ +MD5 ee56df4a6be1f78f53dc48454655aa8a partimage-0.6.4.tar.bz2 654707 diff --git a/sys-block/partimage/files/digest-partimage-0.6.4-r2 b/sys-block/partimage/files/digest-partimage-0.6.4-r2 new file mode 100644 index 000000000000..f525923985b4 --- /dev/null +++ b/sys-block/partimage/files/digest-partimage-0.6.4-r2 @@ -0,0 +1 @@ +MD5 ee56df4a6be1f78f53dc48454655aa8a partimage-0.6.4.tar.bz2 654707 diff --git a/sys-block/partimage/files/partimage-0.6.4-chown.patch b/sys-block/partimage/files/partimage-0.6.4-chown.patch new file mode 100644 index 000000000000..49fa01483478 --- /dev/null +++ b/sys-block/partimage/files/partimage-0.6.4-chown.patch @@ -0,0 +1,38 @@ +--- partimage-0.6.2/Makefile.am.orig 2002-11-25 06:08:36.000000000 -0500 ++++ partimage-0.6.2/Makefile.am 2002-11-25 06:08:58.000000000 -0500 +@@ -23,8 +23,6 @@ + rm ${sysconfdir}/partimaged/partimaged.csr ;\ + chmod 600 ${sysconfdir}/partimaged/partimaged.key ;\ + chmod 600 ${sysconfdir}/partimaged/partimaged.cert ;\ +- chown partimag.root ${sysconfdir}/partimaged/partimaged.key ;\ +- chown partimag.root ${sysconfdir}/partimaged/partimaged.cert ;\ + else \ + echo "SSL disabled, no certificate will be generated." ;\ + fi +@@ -57,7 +55,6 @@ + echo "#sample # user 'sample' is allowed to connect partimaged" >> \ + ${sysconfdir}/partimaged/partimagedusers ;\ + chmod 600 ${sysconfdir}/partimaged/partimagedusers ;\ +- chown partimag.root ${sysconfdir}/partimaged/partimagedusers ;\ + fi + + $(mkinstalldirs) ${infodir} +--- partimage-0.6.2/Makefile.in.orig 2002-11-25 06:15:31.000000000 -0500 ++++ partimage-0.6.2/Makefile.in 2002-11-25 06:15:58.000000000 -0500 +@@ -651,8 +651,6 @@ + rm ${sysconfdir}/partimaged/partimaged.csr ;\ + chmod 600 ${sysconfdir}/partimaged/partimaged.key ;\ + chmod 600 ${sysconfdir}/partimaged/partimaged.cert ;\ +- chown partimag.root ${sysconfdir}/partimaged/partimaged.key ;\ +- chown partimag.root ${sysconfdir}/partimaged/partimaged.cert ;\ + else \ + echo "SSL disabled, no certificate will be generated." ;\ + fi +@@ -684,7 +682,6 @@ + echo "#sample # user 'sample' is allowed to connect partimaged" >> \ + ${sysconfdir}/partimaged/partimagedusers ;\ + chmod 600 ${sysconfdir}/partimaged/partimagedusers ;\ +- chown partimag.root ${sysconfdir}/partimaged/partimagedusers ;\ + fi + + $(mkinstalldirs) ${infodir} diff --git a/sys-block/partimage/files/partimage-0.6.4-fixserverargs.diff b/sys-block/partimage/files/partimage-0.6.4-fixserverargs.diff new file mode 100644 index 000000000000..bd04502a93b3 --- /dev/null +++ b/sys-block/partimage/files/partimage-0.6.4-fixserverargs.diff @@ -0,0 +1,11 @@ +--- partimage-0.6.4/src/server/partimaged-main.cpp.chris 2005-01-16 16:10:23.273973792 +0100 ++++ partimage-0.6.4/src/server/partimaged-main.cpp 2005-01-16 16:10:48.750100832 +0100 +@@ -78,7 +78,7 @@ + }; + #endif //HAVE_GETOPT_H + +-static char optstring[]="ip:hvDdr:g:L"; ++static char optstring[]="ip:hvDd:r:g:L"; + + bool g_bSigKill = false; + bool g_bSigInt = false; diff --git a/sys-block/partimage/files/partimage-0.6.4-nodumbpermchecks.diff b/sys-block/partimage/files/partimage-0.6.4-nodumbpermchecks.diff new file mode 100644 index 000000000000..5ca7971d23ca --- /dev/null +++ b/sys-block/partimage/files/partimage-0.6.4-nodumbpermchecks.diff @@ -0,0 +1,36 @@ +diff -urwb partimage-0.6.4.orig/src/shared/access.cpp partimage-0.6.4/src/shared/access.cpp +--- partimage-0.6.4.orig/src/shared/access.cpp 2004-02-03 16:57:36.000000000 -0800 ++++ partimage-0.6.4/src/shared/access.cpp 2004-05-13 21:38:38.000000000 -0700 +@@ -323,12 +323,14 @@ + return 1; + } + mode = status.st_mode; ++ /* + if (!S_ISREG(mode)) + { + help(szFile); + showDebug(0, "file %s is not a regular file\n", szFile); + return 1; + } ++ */ + /* + if (status.st_uid != 0 || status.st_gid != 0) + { +@@ -337,7 +339,7 @@ + return 1; + } + */ +- ++ /* + if (mode != (S_IFREG | S_IRUSR | S_IWUSR)) + { + help(szFile); +@@ -346,7 +348,7 @@ + showDebug(0, "it's %o, see stat manpage for help\n"); + return 1; + } +- ++ */ + return 0; + } + #else // HAVE_PAM diff --git a/sys-block/partimage/files/partimage-0.6.4-not_install_info.patch b/sys-block/partimage/files/partimage-0.6.4-not_install_info.patch new file mode 100644 index 000000000000..7abe47bbf43f --- /dev/null +++ b/sys-block/partimage/files/partimage-0.6.4-not_install_info.patch @@ -0,0 +1,29 @@ +--- partimage-0.6.4/Makefile.in.chris 2005-01-14 01:32:01.000000000 +0100 ++++ partimage-0.6.4/Makefile.in 2005-01-14 01:33:01.483820264 +0100 +@@ -685,16 +685,16 @@ + chmod 600 ${sysconfdir}/partimaged/partimagedusers ;\ + fi + +- $(mkinstalldirs) ${infodir} +- $(INSTALL_DATA) AUTHORS ${infodir}/AUTHORS +- $(INSTALL_DATA) BUGS ${infodir}/BUGS +- $(INSTALL_DATA) COPYING ${infodir}/COPYING +- $(INSTALL_DATA) ChangeLog ${infodir}/ChangeLog +- $(INSTALL_DATA) INSTALL ${infodir}/INSTALL +- $(INSTALL_DATA) README ${infodir}/README +- $(INSTALL_DATA) README.partimaged ${infodir}/README.partimaged +- $(INSTALL_DATA) TODO ${infodir}/TODO +- $(INSTALL_DATA) partimage.lsm ${infodir}/partimage.lsm ++ #$(mkinstalldirs) ${infodir} ++ #$(INSTALL_DATA) AUTHORS ${infodir}/AUTHORS ++ #$(INSTALL_DATA) BUGS ${infodir}/BUGS ++ #$(INSTALL_DATA) COPYING ${infodir}/COPYING ++ #$(INSTALL_DATA) ChangeLog ${infodir}/ChangeLog ++ #$(INSTALL_DATA) INSTALL ${infodir}/INSTALL ++ #$(INSTALL_DATA) README ${infodir}/README ++ #$(INSTALL_DATA) README.partimaged ${infodir}/README.partimaged ++ #$(INSTALL_DATA) TODO ${infodir}/TODO ++ #$(INSTALL_DATA) partimage.lsm ${infodir}/partimage.lsm + + uninstall-local: + -rm -f ${infodir}/AUTHORS diff --git a/sys-block/partimage/files/partimaged.conf b/sys-block/partimage/files/partimaged.conf new file mode 100644 index 000000000000..3afb6df54917 --- /dev/null +++ b/sys-block/partimage/files/partimaged.conf @@ -0,0 +1,10 @@ +# Copyright 2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/files/partimaged.conf,v 1.1 2005/03/06 17:58:39 ciaranm Exp $ + +# You can define the following optional arguments: +# -d <dest> Destination directory for the backup images +# -pX Server port +# -r <dest> Chroot directory for improved security + +#PARTIMAGED_OPTS="" diff --git a/sys-block/partimage/files/partimaged.init b/sys-block/partimage/files/partimaged.init new file mode 100644 index 000000000000..1af6ff80243f --- /dev/null +++ b/sys-block/partimage/files/partimaged.init @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/files/partimaged.init,v 1.1 2005/03/06 17:58:39 ciaranm Exp $ + +PARTIMAGED="/usr/sbin/partimaged" + +failed_startup() { + eerror "The PartImage daemon did not start up correctly." + eerror "Perhaps you compiled it with SSL support but forgot to run the ebuild config?" + return 1 +} + +depend() { + need net +} + +start() { + ebegin "Starting partimaged" + start-stop-daemon --start --quiet --exec ${PARTIMAGED} \ + -- ${PARTIMAGED_OPTS} --daemon &> /dev/null + eend $? || failed_startup +} + +stop() { + ebegin "Stopping partimaged" + start-stop-daemon --stop --exec ${PARTIMAGED} + eend $? +} diff --git a/sys-block/partimage/files/partimagedusers.5 b/sys-block/partimage/files/partimagedusers.5 new file mode 100644 index 000000000000..502312506202 --- /dev/null +++ b/sys-block/partimage/files/partimagedusers.5 @@ -0,0 +1,48 @@ +.\" +.\" Copyright (c) 2001 Partition Image Team +.\" All rights reserved. +.\" +.\" Permission is granted to copy, distribute and/or modify this +.\" document under the terms of the GNU Free Documentation License, +.\" Version 1.1 or any later version published by the Free Software +.\" Foundation; with no Invariant Sections, with no Front-Cover Texts, and +.\" with no Back-Cover Texts. A copy of the license is included in top of +.\" package. +.\" +.TH partimagedusers 5 "23 June 2001" +.UC 5 +.SH NAME +partimagedusers \- list of allowed users. +.SH DESCRIPTION +The +.B partimagedusers +file +lists all allowed users to connect partimaged. This file must belong to user \ + "partimag" and must have permissions -rw------- or -r-------. +.PP +The configuration file consists of a set of lines. +All empty lines will be ignored. +Comments begin with a #, and everything on the line after them are ignored. +.PP +Put all allowed to connect partimaged users on the remaining lines, one +login per line. +.SH EXAMPLE +.LP +.PD .1v +.RS +.nf +# +# Sample users list for partimaged +# We only allow user2 and user6 to connect partimaged +# from partimage +user2 +user6 +# end of list +.PD +.SH "SEE ALSO" +.BR partimage(1) , +.BR partimaged(8) +.SH AUTHOR +.nf +Franck Ladurelle <ladurelf@partimage.org> + diff --git a/sys-block/partimage/files/servercert.cnf b/sys-block/partimage/files/servercert.cnf new file mode 100644 index 000000000000..2a42d3cc2191 --- /dev/null +++ b/sys-block/partimage/files/servercert.cnf @@ -0,0 +1,37 @@ +# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/files/servercert.cnf,v 1.1 2005/03/06 17:58:39 ciaranm Exp $ +# Robin H. Johnson <robbat2@gentoo.org> - October 17, 2003 +# This is the openssl config file to generate keys for partimage +# It is read by mkservercert + +[ req ] +# you can increase this value, but be aware that it will make things much slower +# this should be a power of 2! +default_bits = 1024 +# leave the rest of these alone! +encrypt_key = yes +distinguished_name = req_dn +x509_extensions = cert_type +prompt = no + +[ req_dn ] +# 2-Letter ISO country code +C=US +# FULL name of state/province/district +# NO abbreviations! +ST=Alabama +# FULL name of city +# NO abbreviations! +L=Mobile +# Full Name of your organization +# NO abbreviations! +O=Foobar Systems +# Leave this alone unless specifically need to change it! +OU=Automatically-generated PartImage SSL key +# This should be a FQDN that resolves to the IP of your server +CN=localhost +# This should be the email address for the administrator of the server +emailAddress=root@localhost + +# Leave this alone! +[ cert_type ] +nsCertType = server diff --git a/sys-block/partimage/metadata.xml b/sys-block/partimage/metadata.xml new file mode 100644 index 000000000000..65335d039e66 --- /dev/null +++ b/sys-block/partimage/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>base-system</herd> + <maintainer> + <email>xmerlin@gentoo.org</email> + <name>Christian Zoffoli</name> + </maintainer> + <longdescription></longdescription> +</pkgmetadata> diff --git a/sys-block/partimage/partimage-0.6.2.ebuild b/sys-block/partimage/partimage-0.6.2.ebuild new file mode 100644 index 000000000000..27641a28ca8c --- /dev/null +++ b/sys-block/partimage/partimage-0.6.2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.2.ebuild,v 1.1 2005/03/06 17:58:39 ciaranm Exp $ + +inherit gnuconfig + +DESCRIPTION="Console-based application to efficiently save raw partition data to an image file. Optional encryption/compression support." +HOMEPAGE="http://www.partimage.org/" +SRC_URI="mirror://sourceforge/partimage/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="ssl" + +RDEPEND="virtual/libc + >=sys-libs/zlib-1.1.4 + >=dev-libs/lzo-1.08 + >=dev-libs/newt-0.50.35-r1 + >=sys-libs/slang-1.4.5-r2 + app-arch/bzip2 + ssl? ( >=dev-libs/openssl-0.9.6g )" + +DEPEND="${RDEPEND} sys-devel/autoconf" + +src_unpack() { + unpack ${A} + cd ${S} + # Patch Makefile.am so we can take over some of is install work + #patch -p1 < ${FILESDIR}/${PF}-gentoo.patch || die "patch failed" + autoconf + + gnuconfig_update +} + +src_compile() { + # SSL is optional + local sslconf + use ssl || sslconf="--disable-ssl" + econf \ + ${sslconf} \ + --infodir=/usr/share/doc/${PF} || die "econf failed" + cp Makefile Makefile.orig + sed -e "s/partimag\.root/root:root/g" Makefile.orig > Makefile + emake || die +} + +src_install() { + make \ + prefix=${D}/usr \ + sysconfdir=${D}/etc \ + mandir=${D}/usr/share/man \ + infodir=${D}/usr/share/doc/${PF} \ + localedir=${D}/usr/share/locale \ + gettextsrcdir=${D}/usr/share/gettext/po \ + install || die + + # init.d / conf.d + exeinto /etc/init.d ; newexe ${FILESDIR}/${PN}d.init ${PN}d || die + insinto /etc/conf.d ; newins ${FILESDIR}/${PN}d.conf ${PN}d || die + + doman debian/partimage.1 debian/partimaged.8 ${FILESDIR}/partimagedusers.5 || die +} diff --git a/sys-block/partimage/partimage-0.6.4-r1.ebuild b/sys-block/partimage/partimage-0.6.4-r1.ebuild new file mode 100644 index 000000000000..e3e50e878ac9 --- /dev/null +++ b/sys-block/partimage/partimage-0.6.4-r1.ebuild @@ -0,0 +1,153 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.4-r1.ebuild,v 1.1 2005/03/06 17:58:39 ciaranm Exp $ + +inherit gnuconfig eutils + +DESCRIPTION="Console-based application to efficiently save raw partition data to an image file. Optional encryption/compression support." +HOMEPAGE="http://www.partimage.org/" +SRC_URI="mirror://sourceforge/partimage/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="ssl nologin" + +RDEPEND="virtual/libc + >=sys-libs/zlib-1.1.4 + >=dev-libs/lzo-1.08 + >=dev-libs/newt-0.50.35-r1 + >=sys-libs/slang-1.4.5-r2 + app-arch/bzip2 + ssl? ( >=dev-libs/openssl-0.9.6g )" + +DEPEND="${RDEPEND} sys-devel/autoconf" + +PARTIMAG_GROUP_GID=91 +PARTIMAG_USER_UID=91 +PARTIMAG_GROUP_NAME=partimag +PARTIMAG_USER_NAME=partimag +PARTIMAG_USER_SH=/bin/false +PARTIMAG_USER_HOMEDIR=/var/log/partimage +PARTIMAG_USER_GROUPS=partimag + +pkg_setup() { + # Now add users if needed + enewgroup ${PARTIMAG_GROUP_NAME} ${PARTIMAG_GROUP_GID} + enewuser ${PARTIMAG_USER_NAME} ${PARTIMAG_USER_UID} ${PARTIMAG_USER_SH} ${PARTIMAG_USER_HOMEDIR} ${PARTIMAG_USER_GROUPS} +} + +src_unpack() { + unpack ${A} + cd ${S} + # we can do better security ourselves + epatch ${FILESDIR}/${P}-nodumbpermchecks.diff || die + epatch ${FILESDIR}/${P}-fixserverargs.diff || die + # Patch Makefile.am so we can take over some of is install work + #patch -p1 < ${FILESDIR}/${PF}-gentoo.patch || die "patch failed" + sed '18d' -i configure.ac + sed '1iACLOCAL_AMFLAGS = -I macros' -i Makefile.am + for i in intl/Makefile.in po/Makefile.in.in; do + sed 's/^mkinstalldirs =.*/mkinstalldirs = mkdir -p /g' -i ${i} + done + sed 's/chown partimag.root/chown partimag:root/g' -i Makefile.am + gnuconfig_update + automake + aclocal + autoconf +} + +src_compile() { + # SSL is optional + local myconf + myconf="--cache-file=${S}/config.cache" + use ssl || myconf="${myconf} --disable-ssl" + use nologin && myconf="${myconf} --disable-login" + econf \ + ${myconf} \ + --infodir=/usr/share/doc/${PF} || die "econf failed" + cp Makefile Makefile.orig + sed -e "s/partimag\.root/root:root/g" Makefile.orig > Makefile + emake || die +} + +src_install() { + make \ + prefix=${D}/usr \ + sysconfdir=${D}/etc \ + mandir=${D}/usr/share/man \ + datadir=${D}/usr/share \ + infodir=${D}/usr/share/doc/${PF} \ + localedir=${D}/usr/share/locale \ + gettextsrcdir=${D}/usr/share/gettext/po \ + install || die + keepdir /var/log/partimage + insinto /etc/partimaged + doins ${FILESDIR}/servercert.cnf + + # init.d / conf.d + exeinto /etc/init.d ; newexe ${FILESDIR}/${PN}d.init ${PN}d || die + insinto /etc/conf.d ; newins ${FILESDIR}/${PN}d.conf ${PN}d || die + + doman debian/partimage.1 debian/partimaged.8 ${FILESDIR}/partimagedusers.5 || die +} + +# vars for SSL stuff +confdir="${ROOT}etc/partimaged" +privkey="${confdir}/partimaged.key" +cnf="${confdir}/servercert.cnf" +csr="${confdir}/partimaged.csr" +cert="${confdir}/partimaged.cert" + +pkg_config() { + if use ssl; then + ewarn "Please customize /etc/partimaged/servercert.cnf before you continue!" + ewarn "Press Ctrl-C to break now for it, or press enter to continue." + read + if [ ! -f ${privkey} ]; then + einfo "Generating unencrypted private key: ${privkey}" + openssl genrsa -out ${privkey} 1024 || die "Failed!" + else + einfo "Private key already exists: ${privkey}" + fi + if [ ! -f ${csr} ]; then + einfo "Generating certificate request: ${csr}" + openssl req -new -x509 -outform PEM -out ${csr} -key ${privkey} -config ${cnf} || die "Failed!" + else + einfo "Certificate request already exists: ${csr}" + fi + if [ ! -f ${cert} ]; then + einfo "Generating self-signed certificate: ${cert}" + openssl x509 -in ${csr} -out ${cert} -signkey ${privkey} || die "Failed!" + else + einfo "Self-signed certifcate already exists: ${cert}" + fi + einfo "Setting permissions" + partimagesslperms || die "Failed!" + einfo "Done" + else + einfo "SSL is disabled, not building certificates" + fi +} + +partimagesslperms() { + local ret=0 + chmod 600 ${privkey} 2>/dev/null + ret=$((${ret}+$?)) + chown partimag:root ${privkey} 2>/dev/null + ret=$((${ret}+$?)) + chmod 644 ${cert} ${csr} 2>/dev/null + ret=$((${ret}+$?)) + chown root:root ${cert} ${csr} 2>/dev/null + ret=$((${ret}+$?)) + return $ret +} + +pkg_postinst() { + if use ssl; then + einfo "To create the required SSL certificates, please do:" + einfo "ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" + # force a permmissions fixup + partimagesslperms + return 0 + fi +} diff --git a/sys-block/partimage/partimage-0.6.4-r2.ebuild b/sys-block/partimage/partimage-0.6.4-r2.ebuild new file mode 100644 index 000000000000..15d896af0859 --- /dev/null +++ b/sys-block/partimage/partimage-0.6.4-r2.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.4-r2.ebuild,v 1.1 2005/03/06 17:58:39 ciaranm Exp $ + +inherit gnuconfig eutils + +DESCRIPTION="Console-based application to efficiently save raw partition data to an image file. Optional encryption/compression support." +HOMEPAGE="http://www.partimage.org/" +SRC_URI="mirror://sourceforge/partimage/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="ssl nologin nls" + +DEPEND="${RDEPEND} sys-devel/autoconf" + +RDEPEND="virtual/libc + >=sys-libs/zlib-1.1.4 + >=dev-libs/lzo-1.08 + >=dev-libs/newt-0.50.35-r1 + app-arch/bzip2 + >=sys-libs/slang-1.4.5-r2 + nls? ( sys-devel/gettext ) + ssl? ( >=dev-libs/openssl-0.9.6g )" + +PARTIMAG_GROUP_GID=91 +PARTIMAG_USER_UID=91 +PARTIMAG_GROUP_NAME=partimag +PARTIMAG_USER_NAME=partimag +PARTIMAG_USER_SH=/bin/false +PARTIMAG_USER_HOMEDIR=/var/log/partimage +PARTIMAG_USER_GROUPS=partimag + +pkg_setup() { + # Now add users if needed + enewgroup ${PARTIMAG_GROUP_NAME} ${PARTIMAG_GROUP_GID} + enewuser ${PARTIMAG_USER_NAME} ${PARTIMAG_USER_UID} ${PARTIMAG_USER_SH} ${PARTIMAG_USER_HOMEDIR} ${PARTIMAG_USER_GROUPS} +} + +src_unpack() { + unpack ${A} + cd ${S} + + # we can do better security ourselves + epatch ${FILESDIR}/${P}-nodumbpermchecks.diff || die + epatch ${FILESDIR}/${P}-chown.patch || die + epatch ${FILESDIR}/${P}-not_install_info.patch || die + epatch ${FILESDIR}/${P}-fixserverargs.diff || die +} + +src_compile() { + local myconf + use nologin && myconf="${myconf} --disable-login" + + econf \ + ${myconf} \ + `use_enable ssl` \ + `use_enable nls`|| die "econf failed" + + emake || die +} + +src_install() { + einstall \ + MKINSTALLDIRS=/usr/share/automake-1.8/mkinstalldirs || die + + keepdir /var/log/partimage + + insinto /etc/partimaged; doins ${FILESDIR}/servercert.cnf || die + + # init.d / conf.d + exeinto /etc/init.d ; newexe ${FILESDIR}/${PN}d.init ${PN}d || die + insinto /etc/conf.d ; newins ${FILESDIR}/${PN}d.conf ${PN}d || die + + doman debian/partimage.1 debian/partimaged.8 ${FILESDIR}/partimagedusers.5 || die + dodoc AUTHORS BUGS COPYING ChangeLog INSTALL README* TODO partimage.lsm +} + +# vars for SSL stuff +confdir="${ROOT}etc/partimaged" +privkey="${confdir}/partimaged.key" +cnf="${confdir}/servercert.cnf" +csr="${confdir}/partimaged.csr" +cert="${confdir}/partimaged.cert" + +pkg_config() { + if use ssl; then + ewarn "Please customize /etc/partimaged/servercert.cnf before you continue!" + ewarn "Press Ctrl-C to break now for it, or press enter to continue." + read + if [ ! -f ${privkey} ]; then + einfo "Generating unencrypted private key: ${privkey}" + openssl genrsa -out ${privkey} 1024 || die "Failed!" + else + einfo "Private key already exists: ${privkey}" + fi + if [ ! -f ${csr} ]; then + einfo "Generating certificate request: ${csr}" + openssl req -new -x509 -outform PEM -out ${csr} -key ${privkey} -config ${cnf} || die "Failed!" + else + einfo "Certificate request already exists: ${csr}" + fi + if [ ! -f ${cert} ]; then + einfo "Generating self-signed certificate: ${cert}" + openssl x509 -in ${csr} -out ${cert} -signkey ${privkey} || die "Failed!" + else + einfo "Self-signed certifcate already exists: ${cert}" + fi + einfo "Setting permissions" + partimagesslperms || die "Failed!" + einfo "Done" + else + einfo "SSL is disabled, not building certificates" + fi +} + +partimagesslperms() { + local ret=0 + chmod 600 ${privkey} 2>/dev/null + ret=$((${ret}+$?)) + chown partimag:root ${privkey} 2>/dev/null + ret=$((${ret}+$?)) + chmod 644 ${cert} ${csr} 2>/dev/null + ret=$((${ret}+$?)) + chown root:root ${cert} ${csr} 2>/dev/null + ret=$((${ret}+$?)) + return $ret +} + +pkg_postinst() { + if use ssl; then + einfo "To create the required SSL certificates, please do:" + einfo "ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" + # force a permmissions fixup + partimagesslperms + return 0 + fi +}
\ No newline at end of file diff --git a/sys-block/partimage/partimage-0.6.4.ebuild b/sys-block/partimage/partimage-0.6.4.ebuild new file mode 100644 index 000000000000..3d76252a1fb7 --- /dev/null +++ b/sys-block/partimage/partimage-0.6.4.ebuild @@ -0,0 +1,136 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.4.ebuild,v 1.1 2005/03/06 17:58:39 ciaranm Exp $ + +inherit gnuconfig eutils + +DESCRIPTION="Console-based application to efficiently save raw partition data to an image file. Optional encryption/compression support." +HOMEPAGE="http://www.partimage.org/" +SRC_URI="mirror://sourceforge/partimage/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="ssl nologin" + +RDEPEND="virtual/libc + >=sys-libs/zlib-1.1.4 + >=dev-libs/lzo-1.08 + >=dev-libs/newt-0.50.35-r1 + >=sys-libs/slang-1.4.5-r2 + app-arch/bzip2 + ssl? ( >=dev-libs/openssl-0.9.6g )" + +DEPEND="${RDEPEND} sys-devel/autoconf" + +PARTIMAG_GROUP_GID=91 +PARTIMAG_USER_UID=91 +PARTIMAG_GROUP_NAME=partimag +PARTIMAG_USER_NAME=partimag +PARTIMAG_USER_SH=/bin/false +PARTIMAG_USER_HOMEDIR=/var/log/partimage +PARTIMAG_USER_GROUPS=partimag + +pkg_setup() { + # Now add users if needed + enewgroup ${PARTIMAG_GROUP_NAME} ${PARTIMAG_GROUP_GID} + enewuser ${PARTIMAG_USER_NAME} ${PARTIMAG_USER_UID} ${PARTIMAG_USER_SH} ${PARTIMAG_USER_HOMEDIR} ${PARTIMAG_USER_GROUPS} +} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-fixserverargs.diff || die + # Patch Makefile.am so we can take over some of is install work + #patch -p1 < ${FILESDIR}/${PF}-gentoo.patch || die "patch failed" + sed '18d' -i configure.ac + sed '1iACLOCAL_AMFLAGS = -I macros' -i Makefile.am + for i in intl/Makefile.in po/Makefile.in.in; do + sed 's/^mkinstalldirs =.*/mkinstalldirs = mkdir -p /g' -i ${i} + done + sed 's/chown partimag.root/chown partimag:root/g' -i Makefile.am + gnuconfig_update + automake + aclocal + autoconf +} + +src_compile() { + # SSL is optional + local myconf + myconf="--cache-file=${S}/config.cache" + use ssl || myconf="${myconf} --disable-ssl" + use nologin && myconf="${myconf} --disable-login" + econf \ + ${myconf} \ + --infodir=/usr/share/doc/${PF} || die "econf failed" + cp Makefile Makefile.orig + sed -e "s/partimag\.root/root:root/g" Makefile.orig > Makefile + emake || die +} + +src_install() { + make \ + prefix=${D}/usr \ + sysconfdir=${D}/etc \ + mandir=${D}/usr/share/man \ + datadir=${D}/usr/share \ + infodir=${D}/usr/share/doc/${PF} \ + localedir=${D}/usr/share/locale \ + gettextsrcdir=${D}/usr/share/gettext/po \ + install || die + keepdir /var/log/partimage + insinto /etc/partimaged + doins ${FILESDIR}/servercert.cnf + + # init.d / conf.d + exeinto /etc/init.d ; newexe ${FILESDIR}/${PN}d.init ${PN}d || die + insinto /etc/conf.d ; newins ${FILESDIR}/${PN}d.conf ${PN}d || die + + doman debian/partimage.1 debian/partimaged.8 ${FILESDIR}/partimagedusers.5 || die +} + +pkg_config() { + local dir=${ROOT}etc/partimaged + privkey="${dir}/partimaged.key" + cnf="${dir}/servercert.cnf" + csr="${dir}/partimaged.csr" + cert="${dir}/partimaged.cert" + if use ssl; then + ewarn "Please customize /etc/partimaged/servercert.cnf before you continue!" + ewarn "Press Ctrl-C to break now for it, or press enter to continue." + read + if [ ! -f ${privkey} ]; then + einfo "Generating unencrypted private key: ${privkey}" + openssl genrsa -out ${privkey} 1024 || die "Failed!" + else + einfo "Private key already exists: ${privkey}" + fi + if [ ! -f ${csr} ]; then + einfo "Generating certificate request: ${csr}" + openssl req -new -x509 -outform PEM -out ${csr} -key ${privkey} -config ${cnf} || die "Failed!" + else + einfo "Certificate request already exists: ${csr}" + fi + if [ ! -f ${cert} ]; then + einfo "Generating self-signed certificate: ${cert}" + openssl x509 -in ${csr} -out ${cert} -signkey ${privkey} || die "Failed!" + else + einfo "Self-signed certifcate already exists: ${cert}" + fi + einfo "Setting permissions" + chmod 600 ${privkey} || die "Failed!" + chown partimag:root ${privkey} || die "Failed!" + chmod 644 ${cert} ${csr} || die "Failed!" + chown root:root ${cert} ${csr} || die "Failed!" + einfo "Done" + else + einfo "SSL is disabled, not building certificates" + fi +} + +pkg_postinst() { + if use ssl; then + einfo "To create the required SSL certificates, please do:" + einfo "ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" + fi +} |