Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2012 20:32:16 +0200
From:      Olivier Cochard-Labbe <olivier@cochard.me>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/173001: New port: x11/deforaos-desktop (15/15)
Message-ID:  <5086e2b3.c818b40a.472e.0350@mx.google.com>
Resent-Message-ID: <201210231840.q9NIe0NY014731@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         173001
>Category:       ports
>Synopsis:       New port: x11/deforaos-desktop (15/15)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 23 18:40:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Olivier Cochard-Labbe
>Release:        FreeBSD 9.1-RC2 amd64
>Organization:
>Environment:
System: FreeBSD laptop.bsdrp.net 9.1-RC2 FreeBSD 9.1-RC2 #0 r241106: Mon Oct 1 18:26:44 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	Last and meta port for deforaos desktop environnement (15/15)
	
>How-To-Repeat:
	
>Fix:

	

--- deforaos-desktop.shar.txt begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	x11/deforaos-desktop
#	x11/deforaos-desktop/Makefile
#	x11/deforaos-desktop/pkg-descr
#	x11/deforaos-desktop/files
#	x11/deforaos-desktop/files/startdefora
#
echo c - x11/deforaos-desktop
mkdir -p x11/deforaos-desktop > /dev/null 2>&1
echo x - x11/deforaos-desktop/Makefile
sed 's/^X//' >x11/deforaos-desktop/Makefile << '1d0346f3a5d9f42ac4a4f29e04937683'
X# New ports collection makefile for: deforaos
X# Date created:             20 Oct 2012
X# Whom:                 Olivier Cochard-Labbe <olivier@cochard.me>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	deforaos-desktop
XPORTVERSION=	0.1
XCATEGORIES=	x11
XMASTER_SITES=	# none
XDISTFILES=	# none
XEXTRACT_ONLY=	# none
X
XMAINTAINER=	olivier@cochard.me
XCOMMENT=	Deforaos distribution metaport
X
XRUN_DEPENDS=	${LOCALBASE}/bin/keyboard:${PORTSDIR}/x11/deforaos-Keyboard \
X		${LOCALBASE}/bin/panel:${PORTSDIR}/x11/deforaos-Panel \
X		${LOCALBASE}/bin/browser:${PORTSDIR}/x11/deforaos-Browser \
X		${LOCALBASE}/bin/locker:${PORTSDIR}/x11/deforaos-Locker \
X		${LOCALBASE}/bin/pdfviewer:${PORTSDIR}/print/deforaos-PDFViewer \
X		${LOCALBASE}/bin/mailer:${PORTSDIR}/mail/deforaos-Mailer \
X		${LOCALBASE}/bin/surfer:${PORTSDIR}/www/deforaos-Surfer \
X		${LOCALBASE}/bin/todo:${PORTSDIR}/deskutils/deforaos-Todo \
X		${LOCALBASE}/bin/player:${PORTSDIR}/multimedia/deforaos-Player \
X		${LOCALBASE}/bin/mixer:${PORTSDIR}/audio/deforaos-Mixer \
X		${LOCALBASE}/bin/editor:${PORTSDIR}/editors/deforaos-Editor \
X		${LOCALBASE}/bin/phone:${PORTSDIR}/comms/deforaos-Phone
X
XNO_BUILD=	yes
X
Xdo-install:
X
Xpre-everything::
X	@${ECHO_MSG} "This is a meta-port, meaning that it just depends on its subparts of the port."
X	@${ECHO_MSG} "It won't build and install all the parts until you have typed make install"
X	@${ECHO_MSG} "This port does not ensure things are upgraded; use pkgng/portmaster if you want to"
X	@${ECHO_MSG} "upgrade Defora."
X	@${ECHO_MSG} ""
X
X.include <bsd.port.mk>
1d0346f3a5d9f42ac4a4f29e04937683
echo x - x11/deforaos-desktop/pkg-descr
sed 's/^X//' >x11/deforaos-desktop/pkg-descr << '7e7bde08f5d103badf95d33888c3b5b3'
XThis metaport installs the entire Deforaos desktop
X
XWWW: http://www.defora.org/
7e7bde08f5d103badf95d33888c3b5b3
echo c - x11/deforaos-desktop/files
mkdir -p x11/deforaos-desktop/files > /dev/null 2>&1
echo x - x11/deforaos-desktop/files/startdefora
sed 's/^X//' >x11/deforaos-desktop/files/startdefora << 'ddce5a1f1a854d774a3084442f433e39'
X#!/bin/sh
X# Deforaos startup script
X# This script can be started from .xinitrc by adding this line:
X# exec startdefora
X
X# Ensure the existence of ~/.browser config file
Xif [ ! -f $HOME/.browser ]; then
X	cat <<EOF > $HOME/.browser
Xplugins=dirtree,preview,properties,volumes
Xalternate_rows=1
Xsort_folders_first=1
Xshow_hidden_files=0
XEOF
Xfi
X
X# Ensure the existence of ~/.desktoprc config file
Xif [ ! -f $HOME/.desktoprc ]; then
X    cat <<EOF > $HOME/.desktoprc
X[background]
Xcolor=#000000000000
Xextend=0
Xhow=centered
X
X[icons]
Xbackground=#000000000000
Xforeground=#ffffffffffff
Xfont=Sans Bold 8
Xlayout=none
XEOF
Xfi
X
X# Ensure the existence of ~/.locker config file
Xif [ ! -f $HOME/.locker ]; then
X    cat <<EOF > $HOME/.locker
Xauth=password
XEOF
Xfi
X
X# Ensure the existence of ~/.panel config file
Xif [ ! -f $HOME/.panel ]; then
X    cat <<EOF > $HOME/.panel
Xbottom=main,keyboard,tasks,spacer,battery,volume,systray,clock,close
Xbottom_size=panel-medium
X
X[lock]
Xcommand=xset s activate
X
X[keyboard]
Xcommand=keyboard -x
Xwidth=540
Xheight=180
XEOF
Xfi
X
X# Ensure the existence of ~/.phone config file
Xif [ ! -f $HOME/.phone ]; then
X    cat <<EOF > $HOME/.phone
Xplugins=gprs,oss,panel,profiles,ussd
X
X[modem_hayes]
Xbaudrate=460800
Xhwflow=1
Xdevice=/dev/cuau0
X
X[plugin_gprs]
Xattach=0
Xsystray=1
X
X[plugin_profiles]
Xdefault=General
XEOF
Xfi
X
X# Ensure the existance of ~/.gtkrc-2.0 config file
Xif [ ! -f $HOME/.gtkrc-2.0 ]; then
X    cat <<EOF > $HOME/.gtkrc-2.0
Xgtk-icon-theme-name = "gnome"
Xgtk-key-theme-name = "Emacs"
Xgtk-theme-name = "Clearlooks"
XEOF
Xfi
X
X# Ensure the existence of ~/.mime config file
Xif [ ! -f $HOME/.mime ]; then
X    cat <<EOF > $HOME/.mime
X[application/msword]
Xopen=libreoffice
X
X[application/postscript]
Xopen=evince
X
X[application/pdf]
Xopen=pdfviewer
X
X[application/rtf]
Xopen=libreoffice
X
X[application/vnd.ms-excel]
Xopen=libreoffice
X
X[application/vnd.ms-powerpoint]
Xopen=libreoffice
X
X[application/vnd.oasis.opendocument.presentation]
Xopen=libreoffice
X
X[application/vnd.oasis.opendocument.spreadsheet]
Xopen=libreoffice
X
X[application/vnd.oasis.opendocument.text]
Xopen=libreoffice
X
X[application/vnd.openxmlformats-officedocument.spreadsheetml.sheet]
Xopen=libreoffice
X
X[application/vnd.openxmlformats-officedocument.wordprocessingml.document]
Xopen=libreoffice
X
X[application/x-shellscript]
Xopen=/usr/local/bin/view
Xedit=editor
X
X[image/*]
Xopen=/usr/local/bin/view
Xedit=gimp
X
X[text/html]
Xopen=surfer
Xedit=editor
Xview=/usr/local/bin/view
X
X[text/*]
Xopen=/usr/local/bin/view
Xedit=editor
X
X[video/*]
Xopen=player
X
X[application/mbox]
Xopen=mailer
XEOF
Xfi
X
X
X# Clean up after GDM (GDM sets the number of desktops to one)
Xxprop -root -remove _NET_NUMBER_OF_DESKTOPS -remove _NET_DESKTOP_NAMES -remove _NET_CURRENT_DESKTOP 2> /dev/null
X
X# Enable GTK+2 integration for OpenOffice.org, if available.
Xexport SAL_USE_VCLPLUGIN=gtk
X
X# Launch DBus if needed
Xif which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
X	eval "$(dbus-launch --sh-syntax --exit-with-session)"
Xfi
X
X
X# Start the Defora Locker
Xlocker &
X
X# Start the Defora Panel
Xpanel &
X
X# Run Openbox
Xexec /usr/local/bin/openbox "$@"
X
X# If you would to use matchbox in place of openbox:
X#desktop &
X#exec matchbox-window-manager -use_titlebar no -use_desktop_mode plain
ddce5a1f1a854d774a3084442f433e39
exit
--- deforaos-desktop.shar.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5086e2b3.c818b40a.472e.0350>