Ticket #20248: ncid-patch

File ncid-patch, 1.4 KB (added by meissnem@…, 15 years ago)
Line 
1--- Portfile    2009-06-23 20:12:00.000000000 -0500
2+++ Portfile    2009-07-09 12:24:42.000000000 -0500
3@@ -61,3 +61,31 @@
4 
5 build.env \
6     CC=${configure.cc}
7+
8+variant no_client description "Do not install ncid client scripts" {
9+    depends_lib-delete    port:tcl port:tk
10+
11+    post-destroot {
12+        file delete \
13+            ${destroot}${prefix}/bin/cidalias \
14+            ${destroot}${prefix}/bin/cidcall \
15+            ${destroot}${prefix}/bin/cidupdate \
16+            ${destroot}${prefix}/bin/ncid \
17+            ${destroot}${prefix}/etc/ncid/ncid.conf \
18+            ${destroot}${prefix}/etc/ncid/ncidmodules.conf \
19+            ${destroot}${prefix}/etc/ncid/ncidrotate.conf \
20+            ${destroot}${prefix}/share/man/man1/ncid.1 \
21+            ${destroot}${prefix}/share/man/man1/ncidmodules.1 \
22+            ${destroot}${prefix}/share/man/man1/ncidrotate.1 \
23+            ${destroot}${prefix}/share/man/man1/ncidtools.1 \
24+            ${destroot}${prefix}/share/man/man5/ncid.conf.5 \
25+            ${destroot}${prefix}/share/man/man5/ncidmodules.conf.5 \
26+            ${destroot}${prefix}/share/man/man5/ncidrotate.conf.5 \
27+            ${destroot}${prefix}/share/man/man5/ncidsip.conf.5
28+
29+        file delete -force \
30+            ${destroot}${prefix}/etc/logrotate.d \
31+            ${destroot}${prefix}/share/ncid \
32+            ${destroot}${prefix}/share/pixmaps
33+    }
34+}