From 6ca18cd9546678df40c7f122483f30497edb0095 Mon Sep 17 00:00:00 2001 From: jolan Date: Thu, 30 Apr 2009 23:25:12 +0000 Subject: [PATCH] nobody -> _noip, bump pkgname --- net/no-ip/Makefile | 4 ++-- net/no-ip/patches/patch-noip2_c | 15 ++++++++++++--- net/no-ip/pkg/PLIST | 4 +++- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/net/no-ip/Makefile b/net/no-ip/Makefile index 98850133b6d..3df7edb6211 100644 --- a/net/no-ip/Makefile +++ b/net/no-ip/Makefile @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile,v 1.15 2008/11/23 09:36:30 wilfried Exp $ +# $OpenBSD: Makefile,v 1.16 2009/04/30 23:25:12 jolan Exp $ COMMENT= No-IP.com Dynamic DNS client V= 2.1.9 DISTNAME= noip-${V} -PKGNAME= no-ip-${V} +PKGNAME= no-ip-${V}p0 CATEGORIES= net HOMEPAGE= http://www.no-ip.com/ diff --git a/net/no-ip/patches/patch-noip2_c b/net/no-ip/patches/patch-noip2_c index b82af91eea3..fd40f06f08a 100644 --- a/net/no-ip/patches/patch-noip2_c +++ b/net/no-ip/patches/patch-noip2_c @@ -1,6 +1,6 @@ -$OpenBSD: patch-noip2_c,v 1.7 2008/11/23 09:36:30 wilfried Exp $ ---- noip2.c.orig Fri Nov 21 23:19:54 2008 -+++ noip2.c Sun Nov 23 10:33:56 2008 +$OpenBSD: patch-noip2_c,v 1.8 2009/04/30 23:25:12 jolan Exp $ +--- noip2.c.orig Fri Nov 21 14:19:54 2008 ++++ noip2.c Thu Apr 30 16:13:44 2009 @@ -232,11 +232,8 @@ #define HOST 1 #define GROUP 2 @@ -15,3 +15,12 @@ $OpenBSD: patch-noip2_c,v 1.7 2008/11/23 09:36:30 wilfried Exp $ #define CONFSTRLEN 1024 #define MAX_DEVLEN 16 #define MAX_INSTANCE 4 +@@ -587,7 +584,7 @@ int main(int argc, char *argv[]) + + /* drop root privileges after reading config */ + if (geteuid() == 0) { +- if ((nobody = getpwnam("nobody")) != NULL) { // if "nobody" exists ++ if ((nobody = getpwnam("_noip")) != NULL) { // if "nobody" exists + setgid(nobody->pw_gid); + setegid(nobody->pw_gid); + setuid(nobody->pw_uid); diff --git a/net/no-ip/pkg/PLIST b/net/no-ip/pkg/PLIST index db039093619..6fb852b583e 100644 --- a/net/no-ip/pkg/PLIST +++ b/net/no-ip/pkg/PLIST @@ -1,4 +1,6 @@ -@comment $OpenBSD: PLIST,v 1.6 2008/11/20 07:49:51 wilfried Exp $ +@comment $OpenBSD: PLIST,v 1.7 2009/04/30 23:25:12 jolan Exp $ +@newgroup _noip:624 +@newuser _noip:624:_noip:daemon:noip user:/nonexistent:/sbin/nologin @bin sbin/noip2 share/doc/no-ip/ share/doc/no-ip/README.FIRST