aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-02-21 23:31:25 +0800
committermarino <marino@FreeBSD.org>2014-02-21 23:31:25 +0800
commit87e709fbaeba1b5907ecc3fbbb6838c238d13486 (patch)
tree0464311767b219bd1e94d81b59486845948eafd8 /net
parent7963d6182b1e405f2e6a70959b45d3226d854224 (diff)
downloadfreebsd-ports-gnome-87e709fbaeba1b5907ecc3fbbb6838c238d13486.tar.gz
freebsd-ports-gnome-87e709fbaeba1b5907ecc3fbbb6838c238d13486.tar.zst
freebsd-ports-gnome-87e709fbaeba1b5907ecc3fbbb6838c238d13486.zip
net/nakenchat: upgrade from 2.12 to 2.22 and unbreak
Nakenchat has been broken everywhere for some kind of installation issue. Adding stage support fixes that issue, but let's update to the latest stable version of 2.22 while here. A license was also added. Per a pending PR, nakenpasswd was removed. It's now a bash script rather than a compiled program, but I guess the maintainer thought putting bash as a run dependency wasn't worth it. Most of the PR was used, but it requested an upgrade to a beta version 3.00b. I'm holding off on that upgrade pending feedback. PR: ports/185440
Diffstat (limited to 'net')
-rw-r--r--net/nakenchat/Makefile14
-rw-r--r--net/nakenchat/distinfo4
-rw-r--r--net/nakenchat/files/patch-Makefile20
-rw-r--r--net/nakenchat/pkg-plist1
4 files changed, 10 insertions, 29 deletions
diff --git a/net/nakenchat/Makefile b/net/nakenchat/Makefile
index eac50111fb30..fc0bcc275453 100644
--- a/net/nakenchat/Makefile
+++ b/net/nakenchat/Makefile
@@ -2,13 +2,15 @@
# $FreeBSD$
PORTNAME= nakenchat
-PORTVERSION= 2.12
+PORTVERSION= 2.22
CATEGORIES= net
MASTER_SITES= http://downloads.mikekohn.net/nakenchat/
MAINTAINER= olevole@olevole.ru
COMMENT= Small (under 50k) chat server with many features
+LICENSE= GPLv2
+
HAS_CONFIGURE= yes
USE_RC_SUBR= nakenchat
@@ -31,12 +33,12 @@ DOTQ_CONFIGURE_ON= --enable-dotQ
FUSERLIST_CONFIGURE_ON= --enable-whofile
ELITEFILTER_CONFIGURE_ON= --enable-elite
-NO_STAGE= yes
.include <bsd.port.options.mk>
-post-install:
- @if [ ! -f ${PREFIX}/etc/nakenchat.conf ]; then \
- ${CP} -p ${PREFIX}/etc/nakenchat.conf.sample ${PREFIX}/etc/nakenchat.conf ; \
- fi
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/nakenchat \
+ ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_DATA} ${WRKSRC}/nakenchat.conf \
+ ${STAGEDIR}${PREFIX}/etc/nakenchat.conf.sample
.include <bsd.port.mk>
diff --git a/net/nakenchat/distinfo b/net/nakenchat/distinfo
index 5888f4b5a28e..1435aaa86774 100644
--- a/net/nakenchat/distinfo
+++ b/net/nakenchat/distinfo
@@ -1,2 +1,2 @@
-SHA256 (nakenchat-2.12.tar.gz) = 1597d7759b3849f9b53ada323fa72f7cfc238d4e0c741dccafab3fae66bd900b
-SIZE (nakenchat-2.12.tar.gz) = 41839
+SHA256 (nakenchat-2.22.tar.gz) = 7a0e935974e00908298a1877bbf8cba48a27b9e5fefc1129e06bf35575459342
+SIZE (nakenchat-2.22.tar.gz) = 47909
diff --git a/net/nakenchat/files/patch-Makefile b/net/nakenchat/files/patch-Makefile
deleted file mode 100644
index 23561d92b8a2..000000000000
--- a/net/nakenchat/files/patch-Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
---- ./Makefile.orig 2007-06-27 22:06:34.000000000 -0400
-+++ ./Makefile 2008-11-23 14:24:11.028905510 -0500
-@@ -28,14 +28,9 @@
- install:
- @if [ ! -d $(PREFIX)/bin ]; then mkdir $(PREFIX)/bin; fi;
- @if [ ! -d $(PREFIX)/etc ]; then mkdir $(PREFIX)/etc; fi;
-- cp nakenchat $(PREFIX)/bin
-- cp nakenpasswd $(PREFIX)/bin
-- @echo "cp nakenchat.conf $(PREFIX)/etc"
-- @if [ -f $(PREFIX)/etc/nakenchat.conf ]; then \
-- echo "$(PREFIX)/etc/nakenchat.conf exists."; \
-- else \
-- cp nakenchat.conf $(PREFIX)/etc; \
-- fi
-+ cp src/nakenchat $(PREFIX)/bin
-+ cp src/nakenpasswd $(PREFIX)/bin
-+ cp nakenchat.conf $(PREFIX)/etc/nakenchat.conf.sample;
-
- clean:
- cd src && make clean
diff --git a/net/nakenchat/pkg-plist b/net/nakenchat/pkg-plist
index 316918caa51e..d1f76b85d578 100644
--- a/net/nakenchat/pkg-plist
+++ b/net/nakenchat/pkg-plist
@@ -1,5 +1,4 @@
bin/nakenchat
-bin/nakenpasswd
@unexec if cmp -s %D/etc/nakenchat.conf.sample %D/etc/nakenchat.conf; then rm -f %D/etc/nakenchat.conf; fi
etc/nakenchat.conf.sample
@exec if [ ! -f %D/etc/nakenchat.conf ] ; then cp -p %D/%F %B/nakenchat.conf; fi