From 5e67da2ce4605e2aa0b0eb54b620dd0ad5d6b128 Mon Sep 17 00:00:00 2001 From: marc Date: Thu, 19 Feb 1998 06:59:26 +0000 Subject: [PATCH] Don't try to install shared libpico unless it was generated. Clean up Packing list and remove share/doc/pine on uninstall --- mail/pine/files/Makefile | 9 +++++++-- mail/pine/pkg/PLIST | 3 +-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/mail/pine/files/Makefile b/mail/pine/files/Makefile index 4cedac67d72..ba311978cae 100644 --- a/mail/pine/files/Makefile +++ b/mail/pine/files/Makefile @@ -1,8 +1,13 @@ all: ./build bsf install: - install -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} bin/libpico.so.1.3 ${PREFIX}/lib/libpico.so.1.3 - /sbin/ldconfig -m ${PREFIX}/lib + if [ -s bin/libpico.so.1.3 ]; then \ + install -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + bin/libpico.so.1.3 ${PREFIX}/lib/libpico.so.1.3; \ + /sbin/ldconfig -m ${PREFIX}/lib; \ + else \ + true; \ + fi install -c -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} bin/pico ${PREFIX}/bin/pico install -c -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} bin/pilot ${PREFIX}/bin/pilot install -c -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} bin/pine ${PREFIX}/bin/pine diff --git a/mail/pine/pkg/PLIST b/mail/pine/pkg/PLIST index 6acad8e6d3a..9b0d8df34d3 100644 --- a/mail/pine/pkg/PLIST +++ b/mail/pine/pkg/PLIST @@ -1,8 +1,6 @@ bin/pico bin/pilot bin/pine -lib/libpico.so.1.3 -@exec /sbin/ldconfig -m %B bin/pgpencrypt bin/pgpdecode bin/pgpsign @@ -11,3 +9,4 @@ man/man1/pico.1 man/man1/pilot.1 man/man1/pine.1 share/doc/pine/tech-notes.txt +@dirrm share/doc/pine