summaryrefslogtreecommitdiff
blob: 6063b92db2b8498eb6c0faa9e3fa117d51ab311e (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
--- config.h~	2007-10-03 17:55:24 +0200
+++ config.h	2007-10-03 18:01:38 +0200
@@ -116,11 +116,11 @@
 	is not found, maildelivery will proceed as normal to the default
 	system mailbox.	 This also must be an absolute path */
 
-#define ETCRC	"/etc/procmailrc"	/* optional global procmailrc startup
+#define ETCRC	"@GENTOO_PORTAGE_EPREFIX@/etc/procmailrc"	/* optional global procmailrc startup
 					   file (will only be read if procmail
 	is started with no rcfile on the command line). */
 
-#define ETCRCS	"/etc/procmailrcs/"	/* optional trusted path prefix for
+#define ETCRCS	"@GENTOO_PORTAGE_EPREFIX@/etc/procmailrcs/"	/* optional trusted path prefix for
 					   rcfiles which will be executed with
 	the uid of the owner of the rcfile (this only happens if procmail is
 	called with the -m option, without variable assignments on the command
@@ -168,7 +168,7 @@
 #define INEFFICIENTrealloc			  /* don't pussy-foot around */
 #endif
 #define MAXinMEM	(1024*1024)		 /* when to switch to mmap() */
-#define MMAP_DIR	"/var/spool/procmail/"		     /* where to put */
+#define MMAP_DIR	"@GENTOO_PORTAGE_EPREFIX@/var/spool/procmail/"		     /* where to put */
 #endif								/* the files */
 #define MINlogbuf	81			       /* fit an entire line */
 #define MAXlogbuf	1000		       /* in case someone abuses LOG */
@@ -220,8 +220,8 @@
 #define DEFcomsat	offvalue	/* when an rcfile has been specified */
 				      /* set to either "offvalue" or "empty" */
 
-#define BinSh		"/bin/sh"
-#define ROOT_DIR	"/"
+#define BinSh		"@GENTOO_PORTAGE_EPREFIX@/bin/sh"
+#define ROOT_DIR	"@GENTOO_PORTAGE_EPREFIX@"
 #define DEAD_LETTER	"/tmp/dead.letter"    /* $ORGMAIL if no passwd entry */
 #define DevNull		"/dev/null"
 #define NICE_RANGE	39			  /* maximal nice difference */
--- Makefile~	2007-10-03 18:07:51 +0200
+++ Makefile	2007-10-03 18:10:07 +0200
@@ -2,7 +2,7 @@
 
 # BASENAME should point to where the whole lot will be installed
 # change BASENAME to your home directory if need be
-BASENAME	= /usr
+BASENAME	= @GENTOO_PORTAGE_EPREFIX@/usr
 # For display in the man pages
 VISIBLE_BASENAME= $(BASENAME)
 
@@ -79,7 +79,7 @@
 #			-lresolv	# not really needed, is it?
 
 # Informal list of directories where we look for the libraries in SEARCHLIBS
-LIBPATHS=/lib /usr/lib /usr/local/lib
+LIBPATHS=@GENTOO_PORTAGE_EPREFIX@/lib @GENTOO_PORTAGE_EPREFIX@/usr/lib
 
 GCC_WARNINGS = -O2 -pedantic -Wreturn-type -Wunused -Wformat -Wtraditional \
  -Wpointer-arith -Wconversion -Waggregate-return \
@@ -97,10 +97,10 @@
 ####CC	= cc # gcc
 # object file extension
 O	= o
-RM	= /bin/rm -f
+RM	= @GENTOO_PORTAGE_EPREFIX@/bin/rm -f
 MV	= mv -f
 LN	= ln
-BSHELL	= /bin/sh
+BSHELL	= @GENTOO_PORTAGE_EPREFIX@/bin/sh
 INSTALL = cp
 DEVNULL = /dev/null
 STRIP	= strip
@@ -112,7 +112,7 @@
 MANS5S	= procmailrc procmailsc procmailex
 
 # Possible locations for the sendmail.cf file
-SENDMAILCFS = /etc/mail/sendmail.cf /etc/sendmail.cf /usr/lib/sendmail.cf
+SENDMAILCFS = @GENTOO_PORTAGE_EPREFIX@/etc/mail/sendmail.cf @GENTOO_PORTAGE_EPREFIX@/etc/sendmail.cf @GENTOO_PORTAGE_EPREFIX@/usr/lib/sendmail.cf
 
 # Makefile.1 - mark, don't (re)move this, a sed script needs it
 
--- src/autoconf~	2001-09-11 06:55:46 +0200
+++ src/autoconf	2007-10-03 19:17:51 +0200
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! @GENTOO_PORTAGE_EPREFIX@/bin/sh
 :
 # Copyright (c) 1990-1997, S.R. van den Berg, The Netherlands
 # $Id$
@@ -1416,20 +1416,10 @@
 
 found=no
 
-for a in /var/spool/mail /usr/spool/mail /var/mail /usr/mail /spool/mail
-do
-  test -d $a -a $found != yes &&
-   echo '#define MAILSPOOLDIR "'$a'/"' >>$ACONF && found=yes
-done
-if test $found != yes
-then
- echo '#define MAILSPOOLDIR "/var/spool/mail/"' >>$ACONF
- echo Could not find the system-mailbox directory, supplied default.
-fi
+echo '#define MAILSPOOLDIR "@GENTOO_PORTAGE_EPREFIX@/var/spool/mail/"' >>$ACONF
 
 cat >lookfor <<HERE
-for a in /usr/sbin /usr/lib /lib /usr/etc /etc /usr/bin /bin /usr/local/bin \
- /usr/lbin /usr/local/lib /usr/local /usr/.lib /local/bin /sbin
+for a in @GENTOO_PORTAGE_EPREFIX@/usr/sbin
 do
  if test -f "\$a/\$1"
  then
@@ -1458,7 +1448,7 @@
 grep '^#define SENDMAIL ".*/sendmail"' $ACONF >$DEVNULL ||
  echo "#define DEFflagsendmail \"\"" >>$ACONF
 
-a=/tmp/_chowntst.$$
+a=@GENTOO_PORTAGE_EPREFIX@/tmp/_chowntst.$$
 $RM -r $a
 OLDTESTDIRS="$a $OLDTESTDIRS"
 mkdir $a
@@ -1466,19 +1456,18 @@
 
 _autotst $a/__ $a/__/__ 4 >>$ACONF
 
-cat /usr/lib/sendmail.cf /etc/sendmail.cf /etc/mail/sendmail.cf 2>$DEVNULL |
+cat @GENTOO_PORTAGE_EPREFIX@/usr/lib/sendmail.cf @GENTOO_PORTAGE_EPREFIX@/etc/sendmail.cf @GENTOO_PORTAGE_EPREFIX@/etc/mail/sendmail.cf 2>$DEVNULL |
  grep 'Mlocal.*procmail' >$DEVNULL ||
  echo '#define CF_no_procmail_yet' >>$ACONF
 
-cat /usr/lib/sendmail.cf /etc/sendmail.cf /etc/mail/sendmail.cf 2>$DEVNULL |
+cat @GENTOO_PORTAGE_EPREFIX@/usr/lib/sendmail.cf @GENTOO_PORTAGE_EPREFIX@/etc/sendmail.cf @GENTOO_PORTAGE_EPREFIX@/etc/mail/sendmail.cf 2>$DEVNULL |
  grep '^V' >$DEVNULL ||
  echo '#define buggy_SENDMAIL' >>$ACONF
 
-lpath='/bin'
-bins="/bin"
+lpath='@GENTOO_PORTAGE_EPREFIX@/bin'
+bins='@GENTOO_PORTAGE_EPREFIX@/bin'
 
-for newd in /usr/bin /usr/ucb /usr/5bin $BINDIR /local/bin /usr/local/bin \
- /global/bin /usr/bin/X11 /usr/X*/bin
+for newd in @GENTOO_PORTAGE_EPREFIX@/usr/bin
 do
   if test -d $newd
   then
--- src/recommend.c~	2007-10-03 19:10:01 +0200
+++ src/recommend.c	2007-10-03 19:11:04 +0200
@@ -9,8 +9,7 @@
 
 char mailspooldir[]=MAILSPOOLDIR;
 const char dirsep[]=DIRSEP,
- *const checkf[]={"/bin/mail","/bin/lmail","/usr/lib/sendmail",
- "/usr/lib/smail",0};
+ *const checkf[]={"@GENTOO_PORTAGE_EPREFIX@/usr/bin/sendmail",0};
 
 int main(argc,argv)const int argc;const char*const argv[];
 { struct group*grp;struct stat stbuf;gid_t gid=(gid_t)-1;