pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/tinydyndns-run Instead of a fiddly shell script, u...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8abb1e51b4d6
branches:  trunk
changeset: 441246:8abb1e51b4d6
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Fri Oct 30 10:23:42 2020 +0000

description:
Instead of a fiddly shell script, use nopop3d as the fake POP3 server.
Bump version.

diffstat:

 net/tinydyndns-run/Makefile                  |   5 +++--
 net/tinydyndns-run/files/tinydyndns-pop3d.sh |  19 ++-----------------
 2 files changed, 5 insertions(+), 19 deletions(-)

diffs (49 lines):

diff -r 036059784d5b -r 8abb1e51b4d6 net/tinydyndns-run/Makefile
--- a/net/tinydyndns-run/Makefile       Fri Oct 30 10:20:41 2020 +0000
+++ b/net/tinydyndns-run/Makefile       Fri Oct 30 10:23:42 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2020/10/27 10:25:33 schmonz Exp $
+# $NetBSD: Makefile,v 1.4 2020/10/30 10:23:42 schmonz Exp $
 #
 
-DISTNAME=              tinydyndns-run-20201027
+DISTNAME=              tinydyndns-run-20201030
 CATEGORIES=            net
 MASTER_SITES=          # empty
 DISTFILES=             # empty
@@ -10,6 +10,7 @@
 COMMENT=               Configures tinydyndns to serve and update records
 LICENSE=               2-clause-bsd
 
+DEPENDS+=              nopop3d-[0-9]*:../../mail/nopop3d
 DEPENDS+=              qmail-[0-9]*:../../mail/qmail
 DEPENDS+=              tinydyndns-[0-9]*:../../net/tinydyndns
 DEPENDS+=              cvm-[0-9]*:../../security/cvm
diff -r 036059784d5b -r 8abb1e51b4d6 net/tinydyndns-run/files/tinydyndns-pop3d.sh
--- a/net/tinydyndns-run/files/tinydyndns-pop3d.sh      Fri Oct 30 10:20:41 2020 +0000
+++ b/net/tinydyndns-run/files/tinydyndns-pop3d.sh      Fri Oct 30 10:23:42 2020 +0000
@@ -1,22 +1,7 @@
 #!@SH@
 #
-# $NetBSD: tinydyndns-pop3d.sh,v 1.2 2020/10/19 07:15:55 schmonz Exp $
+# $NetBSD: tinydyndns-pop3d.sh,v 1.3 2020/10/30 10:23:42 schmonz Exp $
 #
 # @PKGNAME@ fake POP3 server.
 
-main() {
-       echo '+OK '
-       read input
-       if [ "$input" = 'LIST' ]; then
-               echo '+OK'
-               echo '.'
-       elif [ "$input" = 'STAT' ]; then
-               echo '+OK 0 0'
-       fi
-       read input
-       echo '+OK'
-       return 0
-}
-
-main "$@"
-exit $?
+exec @PREFIX@/bin/nopop3d "$@"



Home | Main Index | Thread Index | Old Index