From 281dcc8bcdc00534d6164f0e2aee60aaf2510d3b Mon Sep 17 00:00:00 2001 From: Samuli Suominen Date: Fri, 13 Aug 2010 17:33:05 +0000 Subject: old Package-Manager: portage-2.2_rc67/cvs/Linux x86_64 --- sys-block/partimage/Manifest | 19 --- ...age-0.6.4-save_file_and_rest_file_actions.patch | 127 ---------------- .../partimage-0.6.6-disable_header_check.patch | 15 -- .../files/partimage-0.6.6-not_install_info.patch | 21 --- .../files/partimage-0.6.7+glibc-2.10.patch | 12 -- .../partimage/files/partimage-0.6.7-chown.patch | 38 ----- .../files/partimage-0.6.7-datadir-path.patch | 11 -- .../partimage/files/partimage-0.6.7-gcc43.patch | 36 ----- sys-block/partimage/partimage-0.6.7.ebuild | 166 --------------------- 9 files changed, 445 deletions(-) delete mode 100644 sys-block/partimage/files/partimage-0.6.4-save_file_and_rest_file_actions.patch delete mode 100644 sys-block/partimage/files/partimage-0.6.6-disable_header_check.patch delete mode 100644 sys-block/partimage/files/partimage-0.6.6-not_install_info.patch delete mode 100644 sys-block/partimage/files/partimage-0.6.7+glibc-2.10.patch delete mode 100644 sys-block/partimage/files/partimage-0.6.7-chown.patch delete mode 100644 sys-block/partimage/files/partimage-0.6.7-datadir-path.patch delete mode 100644 sys-block/partimage/files/partimage-0.6.7-gcc43.patch delete mode 100644 sys-block/partimage/partimage-0.6.7.ebuild (limited to 'sys-block') diff --git a/sys-block/partimage/Manifest b/sys-block/partimage/Manifest index adbc31488401..7c066a4216e0 100644 --- a/sys-block/partimage/Manifest +++ b/sys-block/partimage/Manifest @@ -1,13 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -AUX partimage-0.6.4-save_file_and_rest_file_actions.patch 3921 RMD160 9b6b5a115ca12839207d4c0554961f8743a7b6f6 SHA1 3eb76c8096b3219337876a32a85bd5f662c772f8 SHA256 a78746a720bb5e22298bcdd01b0c2412a4d675efbdd7b2716c571dc798b3e449 -AUX partimage-0.6.6-disable_header_check.patch 519 RMD160 9ea48aec2a89a7fffe0c097fd6030e7083bd3e1d SHA1 55c478e9ac44fc334a7682938876c180c8e7342a SHA256 3ba99325021238dbb7b7d2023a985b7a9eefa5640b6770b9701f9f20b471ec59 -AUX partimage-0.6.6-not_install_info.patch 937 RMD160 2360cebf931845f6b5d08eb56e4be3df92826a74 SHA1 a6936e9715d88a9705d4238a489de3b2a70672a4 SHA256 ab21eec9e177ae799df0739cc6215cd5538dacaaad6e535376938d351db82002 -AUX partimage-0.6.7+glibc-2.10.patch 508 RMD160 5ca573128b60940635e0dcfcb8e4c3125b2306cc SHA1 19427559cb31db2afe28b244b6e6e707ecea91dc SHA256 908850e484ad51c127fb745723dd606cf49edf931ad137be5ebc7c4d10f6be30 -AUX partimage-0.6.7-chown.patch 1888 RMD160 0db2de481cddd206eb47fa8ef4ee37c01c6fe777 SHA1 b66ab9d3a28400a0fe2329ec38c9b9ab4b814784 SHA256 4e07de0f3b8f182bd16d5f45f0f56be2158524492936cf47891db8714cdb0f4e -AUX partimage-0.6.7-datadir-path.patch 673 RMD160 4ba52dcfc6857026864a5fc460dd978164d0b967 SHA1 03e485c794a9ca24fb85e41d8dba2af8a9cc0abb SHA256 84bbb66c69cbd183bb326e17da2a0b7540690c5f1435903d9e5e7ae4c4cbc820 -AUX partimage-0.6.7-gcc43.patch 1299 RMD160 1541906226f8000eb140bd76c553ab3257e80441 SHA1 e717c7ce64f4e3e06a0f03a26e39e2e0ddaee41a SHA256 91dd330641d28f1bcb5a22a57618249a4f4e5350b0837b2636ef48abfa64443f AUX partimage-0.6.8-destdir.patch 562 RMD160 24cf252d35451474a90da88f4dc5354f33979965 SHA1 6825cb3015b3d271110d99686324d83f5333047d SHA256 ba51a0397ae9e220da4a76d2f441c96e1327e9bf6a696f44b6d01baf31e4603a AUX partimage-0.6.8-openssl-1.patch 593 RMD160 df47fd0d19baf3fccffd654f82667f3ca5f73f3f SHA1 5faeab46525557247f21cb3f629dcd33e58050fb SHA256 179e0876c29bc619d3bec50565122681f36396cc68cce563679e82d04b31671e AUX partimage.1 4492 RMD160 6d35af437de84b7825d089aa7883593bd93124ef SHA1 1b9514e8e8b13a7e4a3dc1b497008e79fc295a48 SHA256 9c6f726dd4e873271765c402d6b1d971532d0c3540fb78a09ed4ddf8d06ba2e6 @@ -17,16 +7,7 @@ AUX partimaged.init 760 RMD160 21e18889534c4714ae90db869fbae4c5774d2228 SHA1 8b8 AUX partimaged.pam 266 RMD160 07b472d4ffdf3f5c10e7b04ba0c1df87e3e1cf9d SHA1 8955da1485c3d15d6193a4a405bc841cf7698017 SHA256 6072116adb36c49a4a4c36a134355162bf215ec7b6716593de76de3123c5adbe AUX partimagedusers.5 1263 RMD160 6416fd7f013e637b99f10c32607994e11728bdd0 SHA1 56afebd408dc14d3270a9a43702d335fa598998e SHA256 6037d086ddcdebd76b2f2477252173e8242ac528bc7025a391364a4da174f0f3 AUX servercert.cnf 1096 RMD160 8786b07466c5330254eb96e1de6f754e8a68e77f SHA1 64fc34b0fbb8a07dc90ea6be932c4e51a6839721 SHA256 9a9cae8cd6c7bbc6f71cd619829b7a6a47d6aae34831cc44a6cc3bf3e7917953 -DIST partimage-0.6.7.tar.bz2 628214 RMD160 e01315fe6073653c89f2dea3c19483853960d59e SHA1 c02e0db728e72277a78a1fb4140171ba8a9336cf SHA256 0b3ed41ab71a73f83a41fc12e61cd874f5d2799cbfbd1db8e39730ba8a3d6d9e DIST partimage-0.6.8.tar.bz2 631193 RMD160 93262d84c69719451ad82b7cbb7e07f8dced61bc SHA1 e88c22e8ba67545dc9d836c12ec56c89c0c11663 SHA256 98f91bf6baa108e390989ce963f75bc30f40ba9c6eb4e953abeedca9a6e6e4b4 -EBUILD partimage-0.6.7.ebuild 4619 RMD160 273de0a60a7c421cbb3b6b46409e9265f59ab65c SHA1 b81931dc6ff45f346408b084270b935daeca7a14 SHA256 c3a7c92e63cab0037abd54d69e24dee83a56808789e6e870b7f7bce6fad3079c EBUILD partimage-0.6.8.ebuild 3711 RMD160 26d0bb51cd5de844f9581a35e91e4d56b02a6d8c SHA1 98b8a541c5786a51ddca6db3b9661c9a01bd1654 SHA256 2e79f5741e51f7b528be65a8d5e731a1087f6a6e3c34b395ae5ed5fd84ac9584 MISC ChangeLog 12665 RMD160 b2c8de409d90f30609162f61ff9e24081dd2ef45 SHA1 aa782ddcc2ef8ee6e0fd85c9724e807d580f776f SHA256 ef0efad5eaa61bcbfd51b3f7633dffcd10aa7f4f9e30cf6b767b699a08b12348 MISC metadata.xml 263 RMD160 f6a0896b330530ad4354f3d145b000d57dafb95a SHA1 cd64d6abb8aff2ed3503c5695884453506e3d952 SHA256 1067ab0115fc08e2b71da0707f6cacd6a229d6f1ce5ea3a57c24dc1c171948f5 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.15 (GNU/Linux) - -iEYEARECAAYFAkxjDxcACgkQcsIHjyDViGQjIQCgrLWIM+KqKOTHiMHLRT6Crqkr -+1MAn2BCsjxhqwPQdOi7Y07UV+42bC5k -=ugD1 ------END PGP SIGNATURE----- diff --git a/sys-block/partimage/files/partimage-0.6.4-save_file_and_rest_file_actions.patch b/sys-block/partimage/files/partimage-0.6.4-save_file_and_rest_file_actions.patch deleted file mode 100644 index 0c61a85673e7..000000000000 --- a/sys-block/partimage/files/partimage-0.6.4-save_file_and_rest_file_actions.patch +++ /dev/null @@ -1,127 +0,0 @@ ---- partimage-0.6.4.orig/src/client/main.cpp 2006-10-14 14:09:50.000000000 +0200 -+++ partimage-0.6.4/src/client/main.cpp 2006-10-14 14:00:30.000000000 +0200 -@@ -517,6 +517,10 @@ - else if (strcmp(argv[optind], "imginfo")==0) - // show informations about the imagefile - nChoice = OPERATION_IMGINFO; -+ else if (strcmp(argv[optind], "save_file")==0) -+ nChoice = OPERATION_SAVE_FILE; -+ else if (strcmp(argv[optind], "rest_file")==0) -+ nChoice = OPERATION_REST_FILE; - else if (strcmp(argv[optind], "save_all")==0) - nChoice = OPERATION_SAVE_ALL; - else if (strcmp(argv[optind], "rest_all")==0) -@@ -690,7 +694,35 @@ - nRes = -1; - } - break; -- -+ -+ case OPERATION_SAVE_FILE: -+ showDebug(1, "action=SAVE_FILE\n"); -+ try { save_file(szImageFile, &options); } -+ catch (CExceptions *excep) -+ { -+ showDebug(1, "save_file caught exception: %d\n", excep->GetExcept()); -+ -+ if (options.bBatchMode) ensure_interface_is_non_interactive(); -+ g_interface -> Error(excep, szImageFile, ""); -+ -+ nRes = -1; -+ } -+ break; -+ -+ case OPERATION_REST_FILE: -+ showDebug(1, "action=REST_FILE\n"); -+ try { rest_file(szImageFile, &options); } -+ catch (CExceptions *excep) -+ { -+ showDebug(1, "rest_file caught exception: %d\n", excep->GetExcept()); -+ -+ if (options.bBatchMode) ensure_interface_is_non_interactive(); -+ g_interface -> Error(excep, szImageFile, ""); -+ -+ nRes = -1; -+ } -+ break; -+ - default: // exit - if (options.bSync) - { ---- partimage-0.6.4.orig/src/client/misc.cpp 2006-10-14 14:09:50.000000000 +0200 -+++ partimage-0.6.4/src/client/misc.cpp 2006-10-14 14:04:24.000000000 +0200 -@@ -2502,3 +2502,52 @@ - - RETURN; - } -+ -+void save_file(char *szImageFile, COptions *options) -+{ -+ BEGIN; -+ int in_offset = 0; -+ char *in = (char *) malloc(MAXPATHLEN); -+ -+ CImage image(options); -+ image.set_szImageFilename(szImageFile); -+ image.openWriting(); -+ -+ while (1) { -+ int len = fread(in + in_offset, 1, MAXPATHLEN, stdin); -+ showDebug(1, "read %d chars on stdin\n", len); -+ if (!len) break; -+ in = (char *) realloc(in, MAXPATHLEN + (in_offset += len)); -+ } -+ showDebug(1, "writing %d chars in %s\n", in_offset, szImageFile); -+ write_unsigned(&image, in_offset); -+ image.write((void *) in, in_offset, true); -+ free(in); -+ -+ closeFilesSave(false, *options, &image, NULL); -+ -+ RETURN; -+} -+ -+void rest_file(char *szImageFile, COptions *options) -+{ -+ BEGIN; -+ -+ CImage image(options); -+ -+ { -+ image.set_szImageFilename(szImageFile); -+ image.openReading(); -+ -+ unsigned int len = read_unsigned(&image); -+ char *s = (char *) malloc(len + 1); -+ image.read(s, len, true); -+ fwrite(s, 1, len, stdout); -+ free(s); -+ -+ // since sfdisk.lst is not really nice to the library, we can't close the thread from procReadBuffer$ -+ image.closeReading(false); -+ } -+ -+ RETURN; -+} ---- partimage-0.6.4.orig/src/client/misc.h 2006-10-14 14:09:50.000000000 +0200 -+++ partimage-0.6.4/src/client/misc.h 2006-10-14 14:00:30.000000000 +0200 -@@ -47,6 +47,8 @@ - void savePartition(char *szDevice, char *szImageName, /*char *szFilesystem, */COptions *options); - void restorePartition(char *szDevice, char *szImageName, COptions *options); - void restoreMbr(char *szImageFile, COptions *options); -+void save_file(char *szImageFile, COptions *options); -+void rest_file(char *szImageFile, COptions *options); - void save_all(char *szImageDir, COptions *options); - void rest_all(char *szImageDir, COptions *options); - ---- partimage-0.6.4.orig/src/client/partimage.h 2006-10-14 14:09:50.000000000 +0200 -+++ partimage-0.6.4/src/client/partimage.h 2006-10-14 14:09:18.000000000 +0200 -@@ -96,6 +96,8 @@ - #define OPERATION_EXIT 5 - #define OPERATION_SAVE_ALL 6 - #define OPERATION_REST_ALL 7 -+#define OPERATION_SAVE_FILE 8 -+#define OPERATION_REST_FILE 9 - - // returned by CExceptionsGUI::windowError - // user canceled the job diff --git a/sys-block/partimage/files/partimage-0.6.6-disable_header_check.patch b/sys-block/partimage/files/partimage-0.6.6-disable_header_check.patch deleted file mode 100644 index 37c32a81035c..000000000000 --- a/sys-block/partimage/files/partimage-0.6.6-disable_header_check.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -uNr partimage-0.6.6.orig/src/client/main.cpp partimage-0.6.6/src/client/main.cpp ---- partimage-0.6.6.orig/src/client/main.cpp 2008-01-15 00:39:28.000000000 +0100 -+++ partimage-0.6.6/src/client/main.cpp 2008-01-15 01:30:57.000000000 +0100 -@@ -1015,6 +1015,11 @@ - // ======================================================= - int checkStructSizes() - { -+ // Disable header check for AMD64, because it fails -+#if defined(__x86_64__) -+ return 0; -+#endif -+ - // ---- check types sizes - - if (sizeof(DWORD) != 4) diff --git a/sys-block/partimage/files/partimage-0.6.6-not_install_info.patch b/sys-block/partimage/files/partimage-0.6.6-not_install_info.patch deleted file mode 100644 index e4d1f7162c1f..000000000000 --- a/sys-block/partimage/files/partimage-0.6.6-not_install_info.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -uNr partimage-0.6.6.orig/Makefile.in partimage-0.6.6/Makefile.in ---- partimage-0.6.6.orig/Makefile.in 2008-01-14 23:11:07.000000000 +0100 -+++ partimage-0.6.6/Makefile.in 2008-01-14 23:14:55.000000000 +0100 -@@ -703,17 +703,6 @@ - chmod 600 ${DESTDIR}${sysconfdir}/partimaged/partimagedusers ;\ - fi - -- $(mkinstalldirs) ${DESTDIR}${infodir} -- $(INSTALL_DATA) AUTHORS ${DESTDIR}${infodir}/AUTHORS -- $(INSTALL_DATA) BUGS ${DESTDIR}${infodir}/BUGS -- $(INSTALL_DATA) COPYING ${DESTDIR}${infodir}/COPYING -- $(INSTALL_DATA) ChangeLog ${DESTDIR}${infodir}/ChangeLog -- $(INSTALL_DATA) INSTALL ${DESTDIR}${infodir}/INSTALL -- $(INSTALL_DATA) README ${DESTDIR}${infodir}/README -- $(INSTALL_DATA) README.partimaged ${DESTDIR}${infodir}/README.partimaged -- $(INSTALL_DATA) TODO ${DESTDIR}${infodir}/TODO -- $(INSTALL_DATA) partimage.lsm ${DESTDIR}${infodir}/partimage.lsm -- - uninstall-local: - -rm -f ${infodir}/AUTHORS - -rm -f ${infodir}/BUGS diff --git a/sys-block/partimage/files/partimage-0.6.7+glibc-2.10.patch b/sys-block/partimage/files/partimage-0.6.7+glibc-2.10.patch deleted file mode 100644 index c8b2fed20ece..000000000000 --- a/sys-block/partimage/files/partimage-0.6.7+glibc-2.10.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naur partimage-0.6.7/src/client/misc.cpp partimage-0.6.7-new/src/client/misc.cpp ---- partimage-0.6.7/src/client/misc.cpp 2008-02-03 19:58:00.000000000 -0200 -+++ partimage-0.6.7-new/src/client/misc.cpp 2009-02-26 12:57:45.000000000 -0300 -@@ -2372,7 +2372,7 @@ - - static char *sfdisk_line_to_partition_device(const char *line) - { -- if (char *p = strchr(line, ':')) { -+ if (const char *p = strchr(line, ':')) { - while (p[-1] == ' ' && p > line) p--; - return strndup(line, p - line); - } else { diff --git a/sys-block/partimage/files/partimage-0.6.7-chown.patch b/sys-block/partimage/files/partimage-0.6.7-chown.patch deleted file mode 100644 index e28d18fcb05b..000000000000 --- a/sys-block/partimage/files/partimage-0.6.7-chown.patch +++ /dev/null @@ -1,38 +0,0 @@ ---- partimage-0.6.7/Makefile.in.orig 2008-02-26 19:56:15.000000000 +0100 -+++ partimage-0.6.7/Makefile.in 2008-02-26 19:56:25.000000000 +0100 -@@ -708,8 +708,6 @@ - rm -f $(DESTDIR)${sysconfdir}/partimaged/partimaged.csr ;\ - chmod 600 $(DESTDIR)${sysconfdir}/partimaged/partimaged.key || true;\ - chmod 600 $(DESTDIR)${sysconfdir}/partimaged/partimaged.cert || true;\ -- chown partimag:root $(DESTDIR)${sysconfdir}/partimaged/partimaged.key || true;\ -- chown partimag:root $(DESTDIR)${sysconfdir}/partimaged/partimaged.cert || true;\ - else \ - echo "SSL disabled, no certificate will be generated." ;\ - fi -@@ -741,7 +739,6 @@ - echo "#sample # user 'sample' is allowed to connect partimaged" >> \ - $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ - chmod 600 $(DESTDIR)${sysconfdir}/partimaged/partimagedusers || true;\ -- chown partimag:root $(DESTDIR)${sysconfdir}/partimaged/partimagedusers || true ;\ - fi - - distclean-local: ---- partimage-0.6.7/Makefile.am.orig 2008-02-26 19:55:53.000000000 +0100 -+++ partimage-0.6.7/Makefile.am 2008-02-26 19:56:11.000000000 +0100 -@@ -21,8 +21,6 @@ - rm -f $(DESTDIR)${sysconfdir}/partimaged/partimaged.csr ;\ - chmod 600 $(DESTDIR)${sysconfdir}/partimaged/partimaged.key || true;\ - chmod 600 $(DESTDIR)${sysconfdir}/partimaged/partimaged.cert || true;\ -- chown partimag:root $(DESTDIR)${sysconfdir}/partimaged/partimaged.key || true;\ -- chown partimag:root $(DESTDIR)${sysconfdir}/partimaged/partimaged.cert || true;\ - else \ - echo "SSL disabled, no certificate will be generated." ;\ - fi -@@ -55,7 +53,6 @@ - echo "#sample # user 'sample' is allowed to connect partimaged" >> \ - $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ - chmod 600 $(DESTDIR)${sysconfdir}/partimaged/partimagedusers || true;\ -- chown partimag:root $(DESTDIR)${sysconfdir}/partimaged/partimagedusers || true ;\ - fi - - distclean-local: diff --git a/sys-block/partimage/files/partimage-0.6.7-datadir-path.patch b/sys-block/partimage/files/partimage-0.6.7-datadir-path.patch deleted file mode 100644 index f9c315f91dd9..000000000000 --- a/sys-block/partimage/files/partimage-0.6.7-datadir-path.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- partimage-0.6.7/Makefile.in.orig 2008-02-26 19:59:54.000000000 +0100 -+++ partimage-0.6.7/Makefile.in 2008-02-26 20:00:16.000000000 +0100 -@@ -732,7 +732,7 @@ - $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ - echo -n "#add only users allowed to " >> \ - $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ -- echo "connect partimaged" >> ${sysconfdir}/partimaged/partimagedusers ;\ -+ echo "connect partimaged" >> $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ - echo "# (only one login per line)" >> \ - $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ - echo "" >> $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ diff --git a/sys-block/partimage/files/partimage-0.6.7-gcc43.patch b/sys-block/partimage/files/partimage-0.6.7-gcc43.patch deleted file mode 100644 index af37ee1c063e..000000000000 --- a/sys-block/partimage/files/partimage-0.6.7-gcc43.patch +++ /dev/null @@ -1,36 +0,0 @@ -diff -Naurp partimage-0.6.7-orig/src/shared/net.h partimage-0.6.7/src/shared/net.h ---- partimage-0.6.7-orig/src/shared/net.h 2008-02-03 15:57:55.000000000 -0600 -+++ partimage-0.6.7/src/shared/net.h 2008-07-16 20:04:02.000000000 -0600 -@@ -28,7 +28,7 @@ - #include - #include - #include --#include -+#include - #include - - #include "pathnames.h" -diff -Naurp partimage-0.6.7-orig/src/server/partimaged.cpp partimage-0.6.7/src/server/partimaged.cpp ---- partimage-0.6.7-orig/src/server/partimaged.cpp 2008-02-03 15:57:53.000000000 -0600 -+++ partimage-0.6.7/src/server/partimaged.cpp 2008-07-16 20:10:04.000000000 -0600 -@@ -22,7 +22,7 @@ - - #include - #include --#include -+#include - - #include "net.h" - #include "netserver.h" -diff -Naurp partimage-0.6.7-orig/src/server/partimaged-main.cpp partimage-0.6.7/src/server/partimaged-main.cpp ---- partimage-0.6.7-orig/src/server/partimaged-main.cpp 2008-02-03 15:57:53.000000000 -0600 -+++ partimage-0.6.7/src/server/partimaged-main.cpp 2008-07-16 20:10:45.000000000 -0600 -@@ -27,7 +27,7 @@ - - #include - #include --#include -+#include - #include - #include - #include diff --git a/sys-block/partimage/partimage-0.6.7.ebuild b/sys-block/partimage/partimage-0.6.7.ebuild deleted file mode 100644 index 2e69c51ba9eb..000000000000 --- a/sys-block/partimage/partimage-0.6.7.ebuild +++ /dev/null @@ -1,166 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.7.ebuild,v 1.8 2009/09/23 22:29:59 mr_bones_ Exp $ - -WANT_AUTOMAKE="1.10" - -inherit eutils flag-o-matic pam autotools - -DESCRIPTION="Console-based application to efficiently save raw partition data to an image file." -HOMEPAGE="http://www.partimage.org/" -SRC_URI="mirror://sourceforge/partimage/${P}.tar.bz2" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ppc ~sparc x86" -IUSE="ssl nologin nls pam static" - -DEPEND=">=sys-libs/zlib-1.1.4 - >=dev-libs/newt-0.51.6 - app-arch/bzip2 - >=sys-libs/slang-1.4 - nls? ( sys-devel/gettext ) - ssl? ( >=dev-libs/openssl-0.9.6g )" - -RDEPEND="!static? ( - >=sys-libs/zlib-1.1.4 - >=dev-libs/lzo-1.08 - >=dev-libs/newt-0.51.6 - app-arch/bzip2 - >=sys-libs/slang-1.4 - nls? ( sys-devel/gettext ) ssl? ( >=dev-libs/openssl-0.9.6g ) - pam? ( virtual/pam ) - )" - -PARTIMAG_GROUP_GID=91 -PARTIMAG_USER_UID=91 -PARTIMAG_GROUP_NAME=partimag -PARTIMAG_USER_NAME=partimag -PARTIMAG_USER_SH=-1 -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}"/${PN}-0.6.4-save_file_and_rest_file_actions.patch || die - #epatch "${FILESDIR}"/${PN}-0.6.6-not_install_info.patch || die - epatch "${FILESDIR}"/${P}-chown.patch || die - epatch "${FILESDIR}"/${PN}-0.6.6-disable_header_check.patch || die - epatch "${FILESDIR}"/${P}-datadir-path.patch || die - epatch "${FILESDIR}"/${P}-gcc43.patch - epatch "${FILESDIR}"/${P}+glibc-2.10.patch -} - -src_compile() { - filter-flags -fno-exceptions - use ppc && append-flags -fsigned-char - - local myconf - use nologin && myconf="${myconf} --disable-login" - if use static - then - use pam && ewarn "pam and static compilation are mutually exclusive - using static and ignoring pam" - else - myconf="${myconf} `use_enable pam`" - fi - econf \ - ${myconf} \ - --sysconfdir=/etc \ - `use_enable ssl` \ - `use_enable nls` \ - `use_enable static all-static` \ - || die "econf failed" - - emake || die "make failed" -} - -src_install() { - emake DESTDIR="${D}" \ - MKINSTALLDIRS=/usr/share/automake-1.10/mkinstalldirs install || die - - keepdir /var/log/partimage - - insinto /etc/partimaged; doins "${FILESDIR}"/servercert.cnf || die - - # init.d / conf.d - newinitd "${FILESDIR}"/${PN}d.init ${PN}d || die - newconfd "${FILESDIR}"/${PN}d.conf ${PN}d || die - - doman "${FILESDIR}"/{partimage.1,partimaged.8,partimagedusers.5} || die - dodoc AUTHORS BUGS ChangeLog INSTALL README* TODO partimage.lsm || die - - # pam - if use pam - then - newpamd "${FILESDIR}"/partimaged.pam partimaged || die - fi -} - -# 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:0 ${privkey} 2>/dev/null - ret=$((${ret}+$?)) - chmod 644 ${cert} ${csr} 2>/dev/null - ret=$((${ret}+$?)) - chown root:0 ${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 "emerge --config =${PF}" - # force a permmissions fixup - partimagesslperms - return 0 - fi - chown partimag:0 /etc/partimaged/partimagedusers || die -} -- cgit v1.2.3-65-gdbad