diff options
Diffstat (limited to 'ukrainian')
-rw-r--r-- | ukrainian/pine.language/Makefile | 14 | ||||
-rw-r--r-- | ukrainian/pine.language/files/pkg-deinstall.in | 12 | ||||
-rw-r--r-- | ukrainian/pine.language/files/pkg-install.in | 23 |
3 files changed, 41 insertions, 8 deletions
diff --git a/ukrainian/pine.language/Makefile b/ukrainian/pine.language/Makefile index 8ea12134da3d..4fcbd71c19ea 100644 --- a/ukrainian/pine.language/Makefile +++ b/ukrainian/pine.language/Makefile @@ -15,19 +15,17 @@ COMMENT= Tune Pine for Ukrainian (KOI8-U) defaults RUN_DEPENDS= pine:${PORTSDIR}/mail/pine4 -BROKEN= Removes config file at deinstall-time -DEPRECATED= ${BROKEN} -EXPIRATION_DATE=2005-09-22 - NO_WRKSUBDIR= YES NO_BUILD= YES -PLIST_FILES= etc/pine.conf + +SUB_FILES= pkg-install pkg-deinstall +PKGINSTALL= ${WRKDIR}/pkg-install +PKGDEINSTALL= ${WRKDIR}/pkg-deinstall do-fetch: + ${DO_NADA} do-install: - ${GREP} -q -i koi8 ${PREFIX}/etc/pine.conf || \ - ${CAT} ${FILESDIR}/pine.add >> \ - ${PREFIX}/etc/pine.conf + @${SETENV} ${SCRIPTS_ENV} PGPLIB="${PGPLIB}" PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} pkg-install .include <bsd.port.mk> diff --git a/ukrainian/pine.language/files/pkg-deinstall.in b/ukrainian/pine.language/files/pkg-deinstall.in new file mode 100644 index 000000000000..9aab6c0330ac --- /dev/null +++ b/ukrainian/pine.language/files/pkg-deinstall.in @@ -0,0 +1,12 @@ +#!/bin/sh + +# $FreeBSD: /tmp/pcvs/ports/ukrainian/pine.language/files/Attic/pkg-deinstall.in,v 1.1 2005-11-04 06:53:50 edwin Exp $ + +cp %%LOCALBASE%%/etc/pine.conf %%LOCALBASE%%/etc/pine.conf.bak + +z=`grep -n "UKRAINIAN PINE - DO NOT DELETE THIS LINE" %%LOCALBASE%%/etc/pine.conf | awk -F: '{ print $1 }'` +z=`echo $z | sed -e 's/ /,/'` + +sed -e "${z}d" < %%LOCALBASE%%/etc/pine.conf.bak > %%LOCALBASE%%/etc/pine.conf + +rm %%LOCALBASE%%/etc/pine.conf.bak diff --git a/ukrainian/pine.language/files/pkg-install.in b/ukrainian/pine.language/files/pkg-install.in new file mode 100644 index 000000000000..ddaae8162e13 --- /dev/null +++ b/ukrainian/pine.language/files/pkg-install.in @@ -0,0 +1,23 @@ +#!/bin/sh + +# $FreeBSD: /tmp/pcvs/ports/ukrainian/pine.language/files/Attic/pkg-install.in,v 1.1 2005-11-04 06:53:50 edwin Exp $ + +if ! grep -q -i koi8 %%LOCALBASE%%/etc/pine.conf; then + echo "#### UKRAINIAN PINE - DO NOT DELETE THIS LINE #### +############################### Preferences ################################ + +# List of features; see Pine's Setup/options menu for the current set. +# e.g. feature-list= select-without-confirm, signature-at-bottom +# Default condition for all of the features is no-. +feature-list=dont-encode-8bit-text-and-subject, + enable-8bit-esmtp-negotiation, + enable-8bit-nntp-posting, + pass-control-characters-as-is + +# Reflects capabilities of the display you have. Default: US-ASCII. +# Typical alternatives include ISO-8859-x, (x is a number between 1 and 9). +character-set=KOI8-U + +#### UKRAINIAN PINE - DO NOT DELETE THIS LINE ####" \ + >> %%LOCALBASE%%/etc/pine.conf +fi |