aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorjim <jim@FreeBSD.org>2000-08-13 17:39:52 +0800
committerjim <jim@FreeBSD.org>2000-08-13 17:39:52 +0800
commit1ba4a18c43dcf4b0e7aaff08ad0c0d4bfa8a7251 (patch)
tree86580b3e52d35b07d77d8c7f1addb6e1761dca70 /mail
parent95d2bcdd6e6170182c9897b34046e68f7345cbc1 (diff)
downloadfreebsd-ports-gnome-1ba4a18c43dcf4b0e7aaff08ad0c0d4bfa8a7251.tar.gz
freebsd-ports-gnome-1ba4a18c43dcf4b0e7aaff08ad0c0d4bfa8a7251.tar.zst
freebsd-ports-gnome-1ba4a18c43dcf4b0e7aaff08ad0c0d4bfa8a7251.zip
Add a patch to install teapop.passwd as teapop.passwd.sample -- this
prevents evilness which would cause teapop.passwd to be overwritten when installing a newer version of the port. Submitted by: Tobias Reifenberger <treif@mayn.de>
Diffstat (limited to 'mail')
-rw-r--r--mail/teapop-devel/files/patch-aa21
-rw-r--r--mail/teapop-devel/pkg-plist2
-rw-r--r--mail/teapop/files/patch-aa21
-rw-r--r--mail/teapop/pkg-plist2
4 files changed, 44 insertions, 2 deletions
diff --git a/mail/teapop-devel/files/patch-aa b/mail/teapop-devel/files/patch-aa
new file mode 100644
index 000000000000..efa6e7efca00
--- /dev/null
+++ b/mail/teapop-devel/files/patch-aa
@@ -0,0 +1,21 @@
+--- etc/Makefile.in.orig Sat Aug 12 16:28:44 2000
++++ etc/Makefile.in Sat Aug 12 17:15:14 2000
+@@ -23,14 +23,15 @@
+ fi
+
+ install: build
++ @echo installing teapop.passwd.sample; \
++ ${INSTALL} -d ${sysconfdir}; \
++ ${INSTALL} -m 0644 teapop.passwd ${sysconfdir}/teapop.passwd.sample;
+ @echo Checking for existing teapop.passwd; \
+ if [ -f ${sysconfdir}/teapop.passwd ]; then \
+ echo "Exists...NOT installing teapop.passwd"; \
+ else \
+ echo "Not found, installing teapop.passwd"; \
+- ${INSTALL} -d ${sysconfdir}; \
+- ${INSTALL} teapop.passwd ${sysconfdir}; \
+- ${CHMOD} 0755 ${sysconfdir}/teapop.passwd; \
++ ${INSTALL} -m 0644 teapop.passwd ${sysconfdir}; \
+ fi
+
+ makefile: ../config/timestamp
diff --git a/mail/teapop-devel/pkg-plist b/mail/teapop-devel/pkg-plist
index 285abda1f705..d2f17a6ecb6b 100644
--- a/mail/teapop-devel/pkg-plist
+++ b/mail/teapop-devel/pkg-plist
@@ -1,2 +1,2 @@
libexec/teapop
-etc/teapop.passwd
+etc/teapop.passwd.sample
diff --git a/mail/teapop/files/patch-aa b/mail/teapop/files/patch-aa
new file mode 100644
index 000000000000..efa6e7efca00
--- /dev/null
+++ b/mail/teapop/files/patch-aa
@@ -0,0 +1,21 @@
+--- etc/Makefile.in.orig Sat Aug 12 16:28:44 2000
++++ etc/Makefile.in Sat Aug 12 17:15:14 2000
+@@ -23,14 +23,15 @@
+ fi
+
+ install: build
++ @echo installing teapop.passwd.sample; \
++ ${INSTALL} -d ${sysconfdir}; \
++ ${INSTALL} -m 0644 teapop.passwd ${sysconfdir}/teapop.passwd.sample;
+ @echo Checking for existing teapop.passwd; \
+ if [ -f ${sysconfdir}/teapop.passwd ]; then \
+ echo "Exists...NOT installing teapop.passwd"; \
+ else \
+ echo "Not found, installing teapop.passwd"; \
+- ${INSTALL} -d ${sysconfdir}; \
+- ${INSTALL} teapop.passwd ${sysconfdir}; \
+- ${CHMOD} 0755 ${sysconfdir}/teapop.passwd; \
++ ${INSTALL} -m 0644 teapop.passwd ${sysconfdir}; \
+ fi
+
+ makefile: ../config/timestamp
diff --git a/mail/teapop/pkg-plist b/mail/teapop/pkg-plist
index 285abda1f705..d2f17a6ecb6b 100644
--- a/mail/teapop/pkg-plist
+++ b/mail/teapop/pkg-plist
@@ -1,2 +1,2 @@
libexec/teapop
-etc/teapop.passwd
+etc/teapop.passwd.sample