summaryrefslogtreecommitdiff
path: root/mail/qmail/files/patch-install.c
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2005-05-10 14:31:29 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2005-05-10 14:31:29 +0000
commit2aa88641dc611ff4d502e22fdb7097b7f9796653 (patch)
tree3c990bbd396a131cb140e84b03f1fe74787548e0 /mail/qmail/files/patch-install.c
parentUpdate to version 1.27. (diff)
- Transfer all work to MASTER port and make slave ports easier
- Use only one pkg-plist and use PLIST_SUB - Use DOCSDIR intead of DOCDIR - OPTIONS'ify - Remove WITH_PRESERVE_CONFIG_FILES knob and detect automatically when is need to create it. - Add $FreeBSD$ tag to pkg-plist and pkg-install - Fix error on enable-qmail script - Remove MASTER_SITE_QMAIL definition from Makefile since it's defined on bsd.sites.mk - Add a new option to don't create rc.d/qmail.sh - Add rc.d/qmail.sh to pkg-plist when necessary PR: ports/80833 Submitted by: maintainer Thanks to: novel, Joao Ricardo P. Mendes <joao@redepegasus.com.br>
Diffstat (limited to 'mail/qmail/files/patch-install.c')
-rw-r--r--mail/qmail/files/patch-install.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/mail/qmail/files/patch-install.c b/mail/qmail/files/patch-install.c
new file mode 100644
index 000000000000..97780f9f61fd
--- /dev/null
+++ b/mail/qmail/files/patch-install.c
@@ -0,0 +1,37 @@
+--- install.c.orig Mon Jun 15 07:53:16 1998
++++ install.c Fri May 6 09:30:15 2005
+@@ -10,6 +10,7 @@
+ #define FATAL "install: fatal: "
+
+ int fdsourcedir = -1;
++noc; /* hack for bin package install -- see port pkg/INSTALL */
+
+ void h(home,uid,gid,mode)
+ char *home;
+@@ -75,6 +76,7 @@
+ int gid;
+ int mode;
+ {
++ if (!noc) {
+ int fdin;
+ int fdout;
+
+@@ -115,6 +117,7 @@
+ strerr_die6sys(111,FATAL,"unable to chown .../",subdir,"/",file,": ");
+ if (chmod(file,mode) == -1)
+ strerr_die6sys(111,FATAL,"unable to chmod .../",subdir,"/",file,": ");
++ }
+ }
+
+ void z(home,file,len,uid,gid,mode)
+@@ -152,8 +155,9 @@
+ strerr_die6sys(111,FATAL,"unable to chmod ",home,"/",file,": ");
+ }
+
+-void main()
++void main(argc, argv)
+ {
++ noc=--argc;
+ fdsourcedir = open_read(".");
+ if (fdsourcedir == -1)
+ strerr_die2sys(111,FATAL,"unable to open current directory: ");