system/gcdemu: Added (gtk applet for controlling CDEmu daemon)

Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
Niels Horn 2011-10-04 08:19:09 -05:00 committed by Robby Workman
parent 0f8cc1f14c
commit f097f53934
5 changed files with 120 additions and 0 deletions

9
system/gcdemu/README Normal file
View File

@ -0,0 +1,9 @@
gCDEmu provides a graphic interface that allows performing the key tasks
related to controlling the CDEmu daemon, such as loading and unloading
devices, displaying devices' status and retrieving/setting devices'
debug masks.
In addition, the applet listens to signals emitted by CDEmu daemon and
provides notifications via libnotify.
This requires GConf, gnome-python and cdemu-daemon.

13
system/gcdemu/doinst.sh Normal file
View File

@ -0,0 +1,13 @@
schema_install() {
SCHEMA="$1"
GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \
chroot . gconftool-2 --makefile-install-rule \
/etc/gconf/schemas/$SCHEMA \
1>/dev/null
}
schema_install gcdemu.schemas
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

View File

@ -0,0 +1,69 @@
#!/bin/sh
# Slackware build script for gcdemu
#
# Copyright 2011 Niels Horn, Rio de Janeiro, RJ, Brazil
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Revision date: 2011/09/24
PRGNAM=gcdemu
VERSION=${VERSION:-1.4.0}
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+rw,go+r-w .
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp AUTHORS ChangeLog COPYING INSTALL NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

10
system/gcdemu/gcdemu.info Normal file
View File

@ -0,0 +1,10 @@
PRGNAM="gcdemu"
VERSION="1.4.0"
HOMEPAGE="http://cdemu.sourceforge.net/pkg_gcdemu.php"
DOWNLOAD="http://downloads.sourceforge.net/cdemu/gcdemu-1.4.0.tar.gz"
MD5SUM="28f8fbe94b63a8cc52c861afe45bd374"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Niels Horn"
EMAIL="niels.horn@gmail.com"
APPROVED="Erik Hanson"

19
system/gcdemu/slack-desc Normal file
View File

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|----------------------------handy-ruler-------------------------------|
gcdemu: gcdemu (gtk applet for controlling CDEmu daemon)
gcdemu:
gcdemu: It provides a graphic interface that allows performing the key tasks
gcdemu: related to controlling the CDEmu daemon, such as loading and unloading
gcdemu: devices, displaying devices' status and retrieving/setting devices'
gcdemu: debug masks.
gcdemu:
gcdemu: Homepage: http://cdemu.sourceforge.net/pkg_gcdemu.php
gcdemu:
gcdemu:
gcdemu: