From 004d75c535dae2d434fa6f768769498550b3805b Mon Sep 17 00:00:00 2001 From: davehome Date: Sat, 9 Jul 2011 14:29:42 +0000 Subject: [PATCH] screen: Added INSTALL file; fixed deps; fixed post_*() --- srcpkgs/screen/INSTALL | 21 +++++++++++++++++++++ srcpkgs/screen/template | 14 ++++---------- 2 files changed, 25 insertions(+), 10 deletions(-) create mode 100644 srcpkgs/screen/INSTALL diff --git a/srcpkgs/screen/INSTALL b/srcpkgs/screen/INSTALL new file mode 100644 index 0000000000..f5c9612d01 --- /dev/null +++ b/srcpkgs/screen/INSTALL @@ -0,0 +1,21 @@ +# +# This script will advise the user to use the example configuration +# files included with the package. +# +case "${ACTION}" in +pre) + ;; +post) + cat << _EOF +===================================================================== + +- Optional example configuration files have been copied to: + /usr/share/examples/screen/ + +- Copy screenrc to /home/your_user_name/.screenrc for user config +- Copy etcscreenrc to /etc/screenrc for system config + +===================================================================== +_EOF + ;; +esac diff --git a/srcpkgs/screen/template b/srcpkgs/screen/template index a31d6814b2..37659e316b 100644 --- a/srcpkgs/screen/template +++ b/srcpkgs/screen/template @@ -1,7 +1,7 @@ # Template file for 'screen' pkgname=screen version=4.0.3 -revision=1 +revision=2 distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version.tar.gz" build_style=gnu_configure configure_args="--enable-colors256" @@ -29,7 +29,6 @@ long_desc=" currently not visible and even when the whole screen session is detached from the users terminal." -Add_dependency run ncurses Add_dependency run ncurses-libs Add_dependency run glibc Add_dependency build gettext @@ -37,13 +36,8 @@ Add_dependency build texinfo Add_dependency build ncurses-devel Add_dependency build glibc-devel -post_build() +post_install() { - mkdir -p ${DESTDIR}/usr/share/info - touch -f ${DESTDIR}/usr/share/info/dir + vinstall etc/screenrc 0644 usr/share/examples/screen + vinstall etc/etcscreenrc 0644 usr/share/examples/screen } - -#post_install() -#{ -# # need to create a default /etc/screenrc and /etc/etcscreenrc here -#}