head 1.4; access; symbols OPENPKG_E1_MP_HEAD:1.2 OPENPKG_E1_MP:1.2 OPENPKG_E1_MP_2_STABLE:1.2.2.2 OPENPKG_E1_FP:1.2.2.2 OPENPKG_2_STABLE_MP:1.2 OPENPKG_2_STABLE_20061018:1.2.2.2 OPENPKG_2_STABLE:1.2.0.2; locks; strict; comment @# @; 1.4 date 2009.11.22.22.24.04; author rse; state Exp; branches; next 1.3; commitid tlPNzmFiBLFx6zcu; 1.3 date 2008.03.03.07.44.16; author rse; state Exp; branches; next 1.2; commitid pSTtLrmPTuyfsETs; 1.2 date 2006.07.04.07.26.56; author thl; state Exp; branches 1.2.2.1; next 1.1; commitid fEi97UpQrSsZTvDr; 1.1 date 2006.03.05.15.00.46; author rse; state Exp; branches; next ; commitid cs9ZwClf4R3Oi0or; 1.2.2.1 date 2006.07.04.07.26.56; author rse; state dead; branches; next 1.2.2.2; commitid iZxwRSmmWscPXUQr; 1.2.2.2 date 2006.10.16.14.52.54; author rse; state Exp; branches; next ; commitid iZxwRSmmWscPXUQr; desc @@ 1.4 log @upgrading package: modsurvey 3.2.5 -> 3.2.6 @ text @Index: installer.pl --- modsurvey-3.2.6/installer.pl.orig 2006-01-23 13:05:47 +0100 +++ modsurvey-3.2.6/installer.pl 2006-03-05 15:35:07 +0100 @@@@ -184,12 +184,13 @@@@ $windows = 0; $distrib = "unix/generic"; $source = "./"; -$destination = "/usr/local/mod_survey/"; +$destination = "@@l_prefix@@/lib/modsurvey/"; +$destination_prefix = $ENV{'RPM_BUILD_ROOT'}; $creator = 1; $conf{"_SURVEY_ALLOWAUTO"} = 1; -$webuser = "apache"; -$webgroup = "apache"; +$webuser = "@@l_nusr@@"; +$webgroup = "@@l_ngrp@@"; sub isWindows() { @@@@ -513,7 +514,7 @@@@ print " windows\n"; print "\nWhich platform are we installing for? [" . $distrib . "] "; -$distrib = &getAnswer($distrib); +# $distrib = &getAnswer($distrib); print "Platform is: $distrib\n\n\n"; $nowpart++; @@@@ -540,8 +541,8 @@@@ $destination = &getAnswer($destination); print "Installing in $destination.\n\n\n"; -$conf{"_SURVEY_ROOT"} = $destination . "webroot/"; -$conf{"_SURVEY_SYSBASE"} = $destination . "data/"; +$conf{"_SURVEY_ROOT"} = "@@l_prefix@@/share/modsurvey/webroot/"; +$conf{"_SURVEY_SYSBASE"} = "@@l_prefix@@/var/modsurvey/data/"; $conf{"_SURVEY_LANG_DIRECTORY"} = $destination . "Lang/"; $nowpart++; @@@@ -566,7 +567,7 @@@@ } else { - ($webuser, $webgroup) = &getUidGid(); + # ($webuser, $webgroup) = &getUidGid(); print "In order to correctly set file security for the files in the\n"; print "Mod_Survey installation directory, we need to know determine under\n"; @@@@ -681,7 +682,7 @@@@ print "option.\n\n"; print "Do you want to set PerlSendHeader to \"On\"? [no] "; -$yesno = lc(&getAnswer("no")); +$yesno = lc(&getAnswer("yes")); if (($yesno ne "no") && ($yesno ne "n")) { print "PerlSendHeader On\n"; @@@@ -926,16 +927,14 @@@@ system "mkdir " . &osFix($destination); -&makeDir($destination); -©CoreFiles($source, $destination); +&makeDir($destination_prefix.$destination); +©CoreFiles($source, $destination_prefix.$destination); if (!$windows) { print "Chmodding/chowning files and directories... "; - system "chown 0:0 -R $destination"; - system "chmod 755 -R $destination"; - system "chown $webuser" . ":" . "$webgroup $destination" . "data"; - system "chmod 700 $destination" . "data"; + system "chmod -R 755 ${destination_prefix}${destination}"; + system "chmod 700 ${destination_prefix}${destination}" . "data"; print "ok\n"; } @ 1.3 log @upgrading package: modsurvey 3.2.4 -> 3.2.5 @ text @d2 2 a3 2 --- modsurvey-3.2.5/installer.pl.orig 2006-01-23 13:05:47 +0100 +++ modsurvey-3.2.5/installer.pl 2006-03-05 15:35:07 +0100 @ 1.2 log @upgrading package: modsurvey 3.2.3 -> 3.2.4 @ text @d2 2 a3 2 --- mod_survey/installer.pl.orig 2006-01-23 13:05:47 +0100 +++ mod_survey/installer.pl 2006-03-05 15:35:07 +0100 @ 1.2.2.1 log @file modsurvey.patch was added on branch OPENPKG_2_STABLE on 2006-10-16 14:52:54 +0000 @ text @d1 79 @ 1.2.2.2 log @Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class) @ text @a0 79 Index: installer.pl --- mod_survey/installer.pl.orig 2006-01-23 13:05:47 +0100 +++ mod_survey/installer.pl 2006-03-05 15:35:07 +0100 @@@@ -184,12 +184,13 @@@@ $windows = 0; $distrib = "unix/generic"; $source = "./"; -$destination = "/usr/local/mod_survey/"; +$destination = "@@l_prefix@@/lib/modsurvey/"; +$destination_prefix = $ENV{'RPM_BUILD_ROOT'}; $creator = 1; $conf{"_SURVEY_ALLOWAUTO"} = 1; -$webuser = "apache"; -$webgroup = "apache"; +$webuser = "@@l_nusr@@"; +$webgroup = "@@l_ngrp@@"; sub isWindows() { @@@@ -513,7 +514,7 @@@@ print " windows\n"; print "\nWhich platform are we installing for? [" . $distrib . "] "; -$distrib = &getAnswer($distrib); +# $distrib = &getAnswer($distrib); print "Platform is: $distrib\n\n\n"; $nowpart++; @@@@ -540,8 +541,8 @@@@ $destination = &getAnswer($destination); print "Installing in $destination.\n\n\n"; -$conf{"_SURVEY_ROOT"} = $destination . "webroot/"; -$conf{"_SURVEY_SYSBASE"} = $destination . "data/"; +$conf{"_SURVEY_ROOT"} = "@@l_prefix@@/share/modsurvey/webroot/"; +$conf{"_SURVEY_SYSBASE"} = "@@l_prefix@@/var/modsurvey/data/"; $conf{"_SURVEY_LANG_DIRECTORY"} = $destination . "Lang/"; $nowpart++; @@@@ -566,7 +567,7 @@@@ } else { - ($webuser, $webgroup) = &getUidGid(); + # ($webuser, $webgroup) = &getUidGid(); print "In order to correctly set file security for the files in the\n"; print "Mod_Survey installation directory, we need to know determine under\n"; @@@@ -681,7 +682,7 @@@@ print "option.\n\n"; print "Do you want to set PerlSendHeader to \"On\"? [no] "; -$yesno = lc(&getAnswer("no")); +$yesno = lc(&getAnswer("yes")); if (($yesno ne "no") && ($yesno ne "n")) { print "PerlSendHeader On\n"; @@@@ -926,16 +927,14 @@@@ system "mkdir " . &osFix($destination); -&makeDir($destination); -©CoreFiles($source, $destination); +&makeDir($destination_prefix.$destination); +©CoreFiles($source, $destination_prefix.$destination); if (!$windows) { print "Chmodding/chowning files and directories... "; - system "chown 0:0 -R $destination"; - system "chmod 755 -R $destination"; - system "chown $webuser" . ":" . "$webgroup $destination" . "data"; - system "chmod 700 $destination" . "data"; + system "chmod -R 755 ${destination_prefix}${destination}"; + system "chmod 700 ${destination_prefix}${destination}" . "data"; print "ok\n"; } @ 1.1 log @new package: modsurvey 3.2.3 (Website Survey Framework) @ text @d2 2 a3 2 --- installer.pl.orig 2006-01-23 13:05:47 +0100 +++ installer.pl 2006-03-05 15:35:07 +0100 @