Provide a fixed basic menu that offers individual users the option

of generation a custom one; from Han Boetes <han@mijncomputer.nl>.
This commit is contained in:
naddy 2003-08-26 19:46:09 +00:00
parent a86089a5d0
commit 52be2f3c4e
5 changed files with 14 additions and 54 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.22 2003/08/25 17:15:56 naddy Exp $
# $OpenBSD: Makefile,v 1.23 2003/08/26 19:46:09 naddy Exp $
COMMENT= "window manager based on the original Blackbox code"
@ -14,7 +14,7 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fluxbox/}
HOMEPAGE= http://fluxbox.org/
MAINTAINER= Han Boetes <han@mijncomputer.nl>
MAINTAINER= Han Boetes <han@linux-mandrake.com>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
@ -31,5 +31,7 @@ MODGCC3_LANGS+= c++
USE_X11= Yes
SUBST_VARS= VERSION
post-install:
${INSTALL_DATA} ${FILESDIR}/menu ${PREFIX}/share/fluxbox
.include <bsd.port.mk>

8
x11/fluxbox/files/menu Normal file
View File

@ -0,0 +1,8 @@
# $OpenBSD: menu,v 1.1 2003/08/26 19:46:09 naddy Exp $
[begin] (Fluxbox)
[exec] (Xterm) {xterm}
[exec] (Generate Menu) {fluxbox-generate_menu}
[reconfig] (Reload config)
[restart] (Restart)
[exit] (Exit)
[end]

View File

@ -1,12 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1 2002/05/27 13:30:44 lebel Exp $
#
# fluxbox de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
rm -f ${PREFIX}/share/fluxbox/menu*
exit 0

View File

@ -1,39 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1 2002/05/27 13:30:44 lebel Exp $
#
# Pre/post-installation setup of fluxbox
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
${PREFIX}/bin/fluxbox-generate_menu \
-p ${PREFIX}/share \
-o ${PREFIX}/share/fluxbox/menu \
-m Fluxbox-${VERSION}
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.9 2003/08/25 17:15:56 naddy Exp $
@comment $OpenBSD: PLIST,v 1.10 2003/08/26 19:46:09 naddy Exp $
@pkgcfl blackbox-*
@pkgcfl openbox-*
bin/bsetbg
@ -10,6 +10,7 @@ man/man1/bsetroot.1
man/man1/fluxbox.1
share/fluxbox/init
share/fluxbox/keys
share/fluxbox/menu
share/fluxbox/nls/C/fluxbox.cat
share/fluxbox/nls/POSIX
share/fluxbox/nls/US_ASCII