From 1ba4a18c43dcf4b0e7aaff08ad0c0d4bfa8a7251 Mon Sep 17 00:00:00 2001 From: jim Date: Sun, 13 Aug 2000 09:39:52 +0000 Subject: 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 --- mail/teapop-devel/files/patch-aa | 21 +++++++++++++++++++++ mail/teapop-devel/pkg-plist | 2 +- mail/teapop/files/patch-aa | 21 +++++++++++++++++++++ mail/teapop/pkg-plist | 2 +- 4 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 mail/teapop-devel/files/patch-aa create mode 100644 mail/teapop/files/patch-aa 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 -- cgit