File: 02_remove_unnecessary_files.diff

package info (click to toggle)
ora2pg 25.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,696 kB
  • sloc: perl: 31,346; sh: 143; makefile: 11; sql: 5
file content (53 lines) | stat: -rw-r--r-- 2,134 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Description: Modify Makefile.PL to match Debian policy
Forwarded: yes
Author: Julián Moreno Patiño <darkjunix@gmail.com
Last-Update: 2016-12-01
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -14,7 +14,7 @@ while ($_ = shift) {
 my $CONFDIR = $ENV{CONFDIR} || '/etc/ora2pg';
 my $RPM_CONFDIR = $CONFDIR;
 my $DOCDIR  = $ENV{DOCDIR} || '/usr/local/share/doc/ora2pg';
-my $DEST_CONF_FILE = 'ora2pg.conf.dist';
+my $DEST_CONF_FILE = 'ora2pg.conf';
 my $DATA_LIMIT_DEFAULT = 10000;
 if ($^O =~ /MSWin32|dos/i) {
 	$DATA_LIMIT_DEFAULT = 2000;
@@ -1397,20 +1397,6 @@ MYSQL_INTERNAL_EXTRACT_FORMAT	0
 };
 close(OUTCFG);
 
-if ($^O !~ /MSWin32|dos/i) {
-	# Do not replace configuration directory in scripts/ora2pg if this is a RPM build.
-	if (!$ENV{RPM_BUILD_ROOT}) {
-		`perl -p -i -e 's#my \\\$CONFIG_FILE .*#my \\\$CONFIG_FILE = "$CONFDIR/ora2pg.conf";#' scripts/ora2pg`;
-	} else {
-		# Do not include prefix with rpmbuild
-		`perl -p -i -e 's#my \\\$CONFIG_FILE .*#my \\\$CONFIG_FILE = "$RPM_CONFDIR/ora2pg.conf";#' scripts/ora2pg`;
-	}
-} else {
-	my $tmp_conf = quotemeta($CONFDIR);
-	`perl -p -e "s#my \\\$CONFIG_FILE .*#my \\\$CONFIG_FILE = '$tmp_conf\\\\ora2pg.conf';#" scripts\\ora2pg > scripts\\ora2pg.tmp`;
-	`copy scripts\\ora2pg.tmp scripts\\ora2pg /Y`;
-}
-
 WriteMakefile(
     'NAME'         => 'Ora2Pg',
     'VERSION_FROM' => 'lib/Ora2Pg.pm',
@@ -1422,7 +1408,7 @@ WriteMakefile(
     'AUTHOR'       => 'Gilles Darold (gilles _AT_ darold _DOT_ net)',
     'ABSTRACT'     => 'Oracle to PostgreSQL migration toolkit',
     'EXE_FILES'    => [ qw(scripts/ora2pg scripts/ora2pg_scanner) ],
-    'MAN3PODS'     => { 'doc/Ora2Pg.pod' => 'blib/man3/ora2pg.3' },
+    'MAN3PODS'     => { 'doc/Ora2Pg.pod' => 'blib/man3/ora2pg.3pm' },
     'DESTDIR'      => $PREFIX,
     'INSTALLDIRS'  => $ENV{INSTALLDIRS},
     'clean'        => {FILES => "$DEST_CONF_FILE lib/blib/"},
@@ -1456,7 +1442,6 @@ install_all :
 	\@\$(CP) -f $DEST_CONF_FILE $CONFDIR/$DEST_CONF_FILE
 	\@\$(MKPATH) $DOCDIR
 	\@\$(CP) -f README $DOCDIR/README
-	\@\$(CP) -f INSTALL $DOCDIR/INSTALL
 	\@\$(CP) -f changelog $DOCDIR/changelog
 };
 	if ($^O =~ /MSWin32|dos/i) {