aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/mcweject
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-06-27 21:44:03 +0800
committervanilla <vanilla@FreeBSD.org>2014-06-27 21:44:03 +0800
commit216227437b4090df83cb503be116b344eeeb66a0 (patch)
tree3c57ce66cf8bbb72d2c753e221f05e8a5e0c438a /sysutils/mcweject
parentabb9cabf6a71e173edba62ebeb5000f6346cc5fc (diff)
downloadfreebsd-ports-gnome-216227437b4090df83cb503be116b344eeeb66a0.tar.gz
freebsd-ports-gnome-216227437b4090df83cb503be116b344eeeb66a0.tar.zst
freebsd-ports-gnome-216227437b4090df83cb503be116b344eeeb66a0.zip
Stagify.
Approved by: portmgr@ (blanket approval)
Diffstat (limited to 'sysutils/mcweject')
-rw-r--r--sysutils/mcweject/Makefile11
-rw-r--r--sysutils/mcweject/files/patch-Makefile19
-rw-r--r--sysutils/mcweject/pkg-plist6
3 files changed, 26 insertions, 10 deletions
diff --git a/sysutils/mcweject/Makefile b/sysutils/mcweject/Makefile
index 8e4f152a3094..16f79f438337 100644
--- a/sysutils/mcweject/Makefile
+++ b/sysutils/mcweject/Makefile
@@ -9,17 +9,8 @@ MASTER_SITES= http://www.neuro.mcw.edu/~bacon/Ports/distfiles/
MAINTAINER= jwbacon@tds.net
COMMENT= Removable media eject
-MAN1= eject.1
-SUB_FILES= pkg-message
-
CONFLICTS= eject-[0-9]*
+SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
-PLIST_FILES= sbin/eject share/examples/mcweject/eject.allow
-PLIST_DIRS= share/examples/mcweject
-
-NO_STAGE= yes
-post-install:
- @${CAT} ${PKGMESSAGE}
-
.include <bsd.port.mk>
diff --git a/sysutils/mcweject/files/patch-Makefile b/sysutils/mcweject/files/patch-Makefile
new file mode 100644
index 000000000000..8f65c9c4677c
--- /dev/null
+++ b/sysutils/mcweject/files/patch-Makefile
@@ -0,0 +1,19 @@
+--- Makefile.orig 2014-06-27 21:40:12.377893504 +0800
++++ Makefile 2014-06-27 21:40:47.338913495 +0800
+@@ -13,11 +13,11 @@ eject.o: eject.c eject.h protos.h Mak
+ $(CC) -c $(CFLAGS) eject.c
+
+ install: eject
+- mkdir -p ${PREFIX}/share/examples/mcweject
+- install -c -o root -g wheel -m 444 \
+- eject.allow ${PREFIX}/share/examples/mcweject
+- install -c -o root -g wheel -m 4511 eject ${PREFIX}/sbin
+- install -c -o root -g wheel -m 444 eject.1 ${PREFIX}/man/man1
++ mkdir -p $(DESTDIR)${PREFIX}/share/examples/mcweject
++ install -c -o root -g wheel \
++ eject.allow $(DESTDIR)${PREFIX}/share/examples/mcweject
++ install -c -o root -g wheel eject $(DESTDIR)${PREFIX}/sbin
++ install -c -o root -g wheel eject.1 $(DESTDIR)${PREFIX}/man/man1
+
+ reallyclean: clean
+ rm -f .*.bak
diff --git a/sysutils/mcweject/pkg-plist b/sysutils/mcweject/pkg-plist
new file mode 100644
index 000000000000..fcd392194c4f
--- /dev/null
+++ b/sysutils/mcweject/pkg-plist
@@ -0,0 +1,6 @@
+man/man1/eject.1.gz
+@mode 4511
+sbin/eject
+@mode
+%%EXAMPLESDIR%%/eject.allow
+@dirrmtry %%EXAMPLESDIR%%