From 67c90b3be4b866ba53d4c145a44ed47e36e959a5 Mon Sep 17 00:00:00 2001 From: kristerw Date: Fri, 31 Dec 2004 16:38:48 +0000 Subject: [PATCH] Initial import of easymenu-0.7.2, contributed by Ola Eriksson in PR pkg/26091. Easymenu is a shell script used to generate menu systems. It can be used to generate anything from easy one-level menus to advanced multi-level menusystems. It has a set of internal commands, and can execute external applications and scripts, all to be as flexible as possible. --- misc/easymenu/DESCR | 6 +++++ misc/easymenu/Makefile | 47 ++++++++++++++++++++++++++++++++++ misc/easymenu/PLIST | 18 +++++++++++++ misc/easymenu/distinfo | 7 +++++ misc/easymenu/patches/patch-aa | 13 ++++++++++ misc/easymenu/patches/patch-ab | 18 +++++++++++++ misc/easymenu/patches/patch-ac | 13 ++++++++++ 7 files changed, 122 insertions(+) create mode 100644 misc/easymenu/DESCR create mode 100644 misc/easymenu/Makefile create mode 100644 misc/easymenu/PLIST create mode 100644 misc/easymenu/distinfo create mode 100644 misc/easymenu/patches/patch-aa create mode 100644 misc/easymenu/patches/patch-ab create mode 100644 misc/easymenu/patches/patch-ac diff --git a/misc/easymenu/DESCR b/misc/easymenu/DESCR new file mode 100644 index 000000000000..b1c7dbdbb183 --- /dev/null +++ b/misc/easymenu/DESCR @@ -0,0 +1,6 @@ +Easymenu is a shell script used to generate menu systems. + +It can be used to generate anything from easy one-level menus to +advanced multi-level menusystems. It has a set of internal commands, +and can execute external applications and scripts, all to be as flexible +as possible. diff --git a/misc/easymenu/Makefile b/misc/easymenu/Makefile new file mode 100644 index 000000000000..d5a42145d2de --- /dev/null +++ b/misc/easymenu/Makefile @@ -0,0 +1,47 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/12/31 16:38:48 kristerw Exp $ +# + +DISTNAME= easymenu-0.7.2 +CATEGORIES= misc +MASTER_SITES= ftp://ftp.mreriksson.net/pub/easymenu/ + +MAINTAINER= ola@mrEriksson.net +HOMEPAGE= http://www.mrEriksson.net/dev/ +COMMENT= Software used to generate menu systems + +USE_BUILDLINK3= yes +NO_BUILD= # defined + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/bin/easymenu ${PREFIX}/bin/ + ${INSTALL_DATA_DIR} ${PREFIX}/share/easymenu + ${INSTALL_DATA_DIR} ${PREFIX}/share/easymenu/etc + ${INSTALL_DATA_DIR} ${PREFIX}/share/easymenu/etc/menus-sample + ${INSTALL_SCRIPT} ${WRKSRC}/easymenu-demo.sh \ + ${PREFIX}/share/easymenu/ + ${INSTALL_SCRIPT} ${WRKSRC}/easymenu-demo-bash.sh \ + ${PREFIX}/share/easymenu/ + ${INSTALL_DATA} ${WRKSRC}/README \ + ${PREFIX}/share/easymenu/ + ${INSTALL_DATA} ${WRKSRC}/CHANGES \ + ${PREFIX}/share/easymenu/ + ${INSTALL_DATA} ${WRKSRC}/etc/easymenu.conf-minimode \ + ${PREFIX}/share/easymenu/etc/ + ${INSTALL_DATA} ${WRKSRC}/etc/easymenu.conf-sample \ + ${PREFIX}/share/easymenu/etc/ + ${INSTALL_DATA} ${WRKSRC}/etc/menus-sample/demo \ + ${PREFIX}/share/easymenu/etc/menus-sample/ + ${INSTALL_DATA} ${WRKSRC}/etc/menus-sample/demo.1 \ + ${PREFIX}/share/easymenu/etc/menus-sample/ + ${INSTALL_DATA} ${WRKSRC}/etc/menus-sample/demo.2 \ + ${PREFIX}/share/easymenu/etc/menus-sample/ + ${INSTALL_DATA} ${WRKSRC}/etc/menus-sample/demo.3 \ + ${PREFIX}/share/easymenu/etc/menus-sample/ + ${INSTALL_DATA} ${WRKSRC}/etc/menus-sample/main \ + ${PREFIX}/share/easymenu/etc/menus-sample/ + ${INSTALL_DATA} ${WRKSRC}/etc/menus-sample/post-demo \ + ${PREFIX}/share/easymenu/etc/menus-sample/ + ${INSTALL_DATA} ${WRKSRC}/etc/menus-sample/pre-demo \ + ${PREFIX}/share/easymenu/etc/menus-sample/ + +.include "../../mk/bsd.pkg.mk" diff --git a/misc/easymenu/PLIST b/misc/easymenu/PLIST new file mode 100644 index 000000000000..f90334d97f56 --- /dev/null +++ b/misc/easymenu/PLIST @@ -0,0 +1,18 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/12/31 16:38:48 kristerw Exp $ +bin/easymenu +share/easymenu/CHANGES +share/easymenu/README +share/easymenu/easymenu-demo-bash.sh +share/easymenu/easymenu-demo.sh +share/easymenu/etc/easymenu.conf-minimode +share/easymenu/etc/easymenu.conf-sample +share/easymenu/etc/menus-sample/demo +share/easymenu/etc/menus-sample/demo.1 +share/easymenu/etc/menus-sample/demo.2 +share/easymenu/etc/menus-sample/demo.3 +share/easymenu/etc/menus-sample/main +share/easymenu/etc/menus-sample/post-demo +share/easymenu/etc/menus-sample/pre-demo +@dirrm share/easymenu/etc/menus-sample +@dirrm share/easymenu/etc +@dirrm share/easymenu diff --git a/misc/easymenu/distinfo b/misc/easymenu/distinfo new file mode 100644 index 000000000000..55875d28075e --- /dev/null +++ b/misc/easymenu/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/12/31 16:38:49 kristerw Exp $ + +SHA1 (easymenu-0.7.2.tar.gz) = 9aff27807ff66c35c4b63db84aeb9c1a3809d51f +Size (easymenu-0.7.2.tar.gz) = 23505 bytes +SHA1 (patch-aa) = 5cb1b7d264766f6c89451170f357cddb1b8cbcf9 +SHA1 (patch-ab) = 8bac81e6138eefbe093027abb6dfbd2255ff03d9 +SHA1 (patch-ac) = cc883f310d513ed94903c6cc36a2cc90d019a350 diff --git a/misc/easymenu/patches/patch-aa b/misc/easymenu/patches/patch-aa new file mode 100644 index 000000000000..1d735f4e9056 --- /dev/null +++ b/misc/easymenu/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/12/31 16:38:49 kristerw Exp $ + +--- bin/easymenu.orig 2002-05-06 20:39:58.000000000 +0200 ++++ bin/easymenu +@@ -207,7 +207,7 @@ + __version="0.7.2" + __global_choice_prefix="@" + __default_user_cfg_file="~/.easymenurc" +- __default_cfg_file="/usr/local/etc/easymenu.conf" ++ __default_cfg_file="/usr/pkg/etc/easymenu.conf" + __default_read_cmd="read" + __default_exec_shell="/bin/sh -c" + __default_temproot="/tmp/" diff --git a/misc/easymenu/patches/patch-ab b/misc/easymenu/patches/patch-ab new file mode 100644 index 000000000000..2695f73fafbf --- /dev/null +++ b/misc/easymenu/patches/patch-ab @@ -0,0 +1,18 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/12/31 16:38:49 kristerw Exp $ + +--- easymenu-demo-bash.sh.orig 2004-06-27 23:17:18.000000000 +0200 ++++ easymenu-demo-bash.sh +@@ -31,11 +31,11 @@ fi + + case $resp in + [yY]|[yY][eE]|[yY][eE][sS]) # Enable bash mode +- bash bin/easymenu -c "@.READCMD:read -n 1" etc/easymenu.conf-sample ++ bash -c ". easymenu -c \"@.READCMD:read -n 1\" etc/easymenu.conf-sample" + ;; + + *) # Execute in normal mode +- bin/easymenu etc/easymenu.conf-sample ++ easymenu etc/easymenu.conf-sample + ;; + + esac diff --git a/misc/easymenu/patches/patch-ac b/misc/easymenu/patches/patch-ac new file mode 100644 index 000000000000..dae230daa9af --- /dev/null +++ b/misc/easymenu/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2004/12/31 16:38:49 kristerw Exp $ + +--- easymenu-demo.sh.orig 2004-06-27 23:17:09.000000000 +0200 ++++ easymenu-demo.sh +@@ -36,7 +36,7 @@ case $sysname in + *) + # Default action + # Execute Easymenu with a demo configuration file +- bin/easymenu etc/easymenu.conf-sample ++ easymenu etc/easymenu.conf-sample + ;; + + esac