aboutsummaryrefslogtreecommitdiff
path: root/sysutils/rtty
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2013-11-16 04:15:28 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2013-11-16 04:15:28 +0000
commitd52f9159829ca1af49fcd650b29b7b3905b1b197 (patch)
treeaa0af94f2875479c1e7108aec17fc1843784f403 /sysutils/rtty
parent5c2a0530036382b31cc9bea1bfcf56eb258bc59f (diff)
Notes
Diffstat (limited to 'sysutils/rtty')
-rw-r--r--sysutils/rtty/Makefile1
-rw-r--r--sysutils/rtty/files/patch-aa27
-rw-r--r--sysutils/rtty/pkg-plist10
3 files changed, 21 insertions, 17 deletions
diff --git a/sysutils/rtty/Makefile b/sysutils/rtty/Makefile
index 819fb31bff87..926389ebe60a 100644
--- a/sysutils/rtty/Makefile
+++ b/sysutils/rtty/Makefile
@@ -16,5 +16,4 @@ EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= |sh
NO_WRKSUBDIR= yes
-NO_STAGE= yes
.include <bsd.port.mk>
diff --git a/sysutils/rtty/files/patch-aa b/sysutils/rtty/files/patch-aa
index f5067b84b617..e57978227ce4 100644
--- a/sysutils/rtty/files/patch-aa
+++ b/sysutils/rtty/files/patch-aa
@@ -1,6 +1,6 @@
---- Makefile.orig Fri Nov 9 15:30:45 2001
-+++ Makefile Fri Nov 9 15:32:24 2001
-@@ -19,12 +19,12 @@
+--- Makefile.orig 2013-11-16 11:45:54.000000000 +0800
++++ Makefile 2013-11-16 11:46:33.000000000 +0800
+@@ -19,12 +19,12 @@ VERSION = 4.0
VPATH = ../src
@@ -16,7 +16,7 @@
#
# use -U to undefine, -D to define
# DEBUG include code to help debug this software
-@@ -37,7 +37,7 @@
+@@ -37,7 +37,7 @@ CDEBUG = -O
CDEFS = -DDEBUG -UWANT_TCPIP -UNEED_BITYPES_H -UNEED_INET_ATON \
-UNO_SOCKADDR_LEN -UNO_HSTRERROR
#
@@ -25,12 +25,23 @@
LIBS = -lcrypt
#(if WANT_TCPIP defined and this isn't in your libc)
# -lresolv
-@@ -64,7 +64,7 @@
- test -d $(DESTPATH)/$$x || mkdir $(DESTPATH)/$$x; \
+@@ -59,15 +59,15 @@ kit:; shar README Makefile *.c *.h *.sh
+ bin.tar:; tar cf bin.tar $(ALL)
+
+ install: $(ALL) Makefile
+- -set -x; test -d $(DESTPATH) || mkdir $(DESTPATH)
++ -set -x; test -d $(DESTDIR)$(DESTPATH) || mkdir $(DESTDIR)$(DESTPATH)
+ -set +e -x; for x in bin dev sock log pid opt out; do \
+- test -d $(DESTPATH)/$$x || mkdir $(DESTPATH)/$$x; \
++ test -d $(DESTDIR)$(DESTPATH)/$$x || mkdir $(DESTDIR)$(DESTPATH)/$$x; \
done
set -x; for x in $(BINARY); do \
- install -c -m 111 $$x $(DESTBIN)/$$x; \
-+ install -c -s -m 111 $$x $(DESTBIN)/$$x; \
++ install -c -s -m 111 $$x $(DESTDIR)$(DESTBIN)/$$x; \
done
set -x; for x in $(SCRIPT); do \
- install -c -m 555 $$x $(DESTBIN)/$$x; \
+- install -c -m 555 $$x $(DESTBIN)/$$x; \
++ install -c -m 555 $$x $(DESTDIR)$(DESTBIN)/$$x; \
+ done
+
+ ttysrv: ttysrv.o ttyprot.o connutil.o misc.o version.o
diff --git a/sysutils/rtty/pkg-plist b/sysutils/rtty/pkg-plist
index 9b30766703fd..13f3c3424054 100644
--- a/sysutils/rtty/pkg-plist
+++ b/sysutils/rtty/pkg-plist
@@ -6,17 +6,11 @@ rtty/bin/locbrok
rtty/bin/rtty
rtty/bin/startsrv
rtty/bin/ttysrv
-@exec mkdir -p %D/rtty/dev
-@exec mkdir -p %D/rtty/log
-@exec mkdir -p %D/rtty/opt
-@exec mkdir -p %D/rtty/out
-@exec mkdir -p %D/rtty/pid
-@exec mkdir -p %D/rtty/sock
@dirrmtry rtty/sock
@dirrmtry rtty/pid
@dirrmtry rtty/out
@dirrmtry rtty/opt
@dirrmtry rtty/log
@dirrmtry rtty/dev
-@dirrm rtty/bin
-@dirrm rtty
+@dirrmtry rtty/bin
+@dirrmtry rtty