summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorfhajny <fhajny>2012-03-13 14:19:00 +0000
committerfhajny <fhajny>2012-03-13 14:19:00 +0000
commit20b3b3f89d669b4707213bae7c3c76112a66b34b (patch)
tree7b851c2fecd3f0f32fc31c163f3117ae069d6887 /editors
parent51dc435445f9033ad7f7f5ac39fa68756fcb6e1e (diff)
downloadpkgsrc-20b3b3f89d669b4707213bae7c3c76112a66b34b.tar.gz
Install a sample config file by default.
Bump PKGREVISION.
Diffstat (limited to 'editors')
-rw-r--r--editors/nano/Makefile10
-rw-r--r--editors/nano/PLIST3
2 files changed, 10 insertions, 3 deletions
diff --git a/editors/nano/Makefile b/editors/nano/Makefile
index 6129075c27b..10dc67123c6 100644
--- a/editors/nano/Makefile
+++ b/editors/nano/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.41 2012/03/03 00:13:00 wiz Exp $
+# $NetBSD: Makefile,v 1.42 2012/03/13 14:19:00 fhajny Exp $
DISTNAME= nano-2.2.4
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= editors
MASTER_SITES= http://www.nano-editor.org/dist/v2.2/
@@ -33,5 +33,11 @@ CONFIGURE_ARGS+= --enable-extra
.include "options.mk"
+INSTALLATION_DIRS+= share/examples/nano
+CONF_FILES+= share/examples/nano/nanorc ${PKG_SYSCONFDIR}/nanorc
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/doc/nanorc.sample ${DESTDIR}${PREFIX}/share/examples/nano/nanorc
+
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/editors/nano/PLIST b/editors/nano/PLIST
index 8fbc00b81d6..1f080bad83a 100644
--- a/editors/nano/PLIST
+++ b/editors/nano/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.15 2010/04/18 17:21:34 tez Exp $
+@comment $NetBSD: PLIST,v 1.16 2012/03/13 14:19:00 fhajny Exp $
bin/nano
bin/rnano
info/nano.info
@@ -38,6 +38,7 @@ share/locale/uk/LC_MESSAGES/nano.mo
share/locale/vi/LC_MESSAGES/nano.mo
share/locale/zh_CN/LC_MESSAGES/nano.mo
share/locale/zh_TW/LC_MESSAGES/nano.mo
+share/examples/nano/nanorc
share/nano/asm.nanorc
share/nano/awk.nanorc
share/nano/c.nanorc