ports/99405: [New Port] sysutils/klineakconfig: kde-utility to play with lineak (config, start, stop, restart lineakd)
Kay Lehmann
kay_lehmann at web.de
Sat Jun 24 07:10:19 UTC 2006
>Number: 99405
>Category: ports
>Synopsis: [New Port] sysutils/klineakconfig: kde-utility to play with lineak (config, start, stop, restart lineakd)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Jun 24 07:10:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Kay Lehmann
>Release: FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD 6.1-STABLE #14: Fri Jun 2 08:55:23 CEST 2006
root at bippes.finkenkrug.ev:/usr/obj/usr/src/sys/bippes
>Description:
add new port for klineakconfig. It is a little applet for the taskbar to configure, start, stop,, restart etc. lineakd.
>How-To-Repeat:
>Fix:
--- klineakconfig-0.9.shar 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:
#
# klineakconfig
# klineakconfig/files
# klineakconfig/files/patch-klineakconfig__klineakconfig.cpp
# klineakconfig/distinfo
# klineakconfig/pkg-descr
# klineakconfig/pkg-plist
# klineakconfig/Makefile
#
echo c - klineakconfig
mkdir -p klineakconfig > /dev/null 2>&1
echo c - klineakconfig/files
mkdir -p klineakconfig/files > /dev/null 2>&1
echo x - klineakconfig/files/patch-klineakconfig__klineakconfig.cpp
sed 's/^X//' >klineakconfig/files/patch-klineakconfig__klineakconfig.cpp << 'END-of-klineakconfig/files/patch-klineakconfig__klineakconfig.cpp'
X--- klineakconfig/klineakconfig.cpp.orig Mon Jun 5 18:36:05 2006
X+++ klineakconfig/klineakconfig.cpp Mon Jun 5 18:39:06 2006
X@@ -55,7 +55,7 @@
X QString parsefile = QString::null;
X parsefile = QDir::homeDirPath() + CONFFILE;
X
X- msg("Loading the plugin manager");
X+ lineak_core_functions::msg("Loading the plugin manager");
X plugins = new PluginManager;
X vector<string> pluginlist = plugins->scanForPlugins();
X /** Load the plugins */
X@@ -68,7 +68,7 @@
X macrolist = plugins->getMacroList();
X /** Get a list of directives from the plugins and their defaults that we support here */
X dnd = plugins->getDirectivesList();
X- msg("Setting dnd!");
X+ lineak_core_functions::msg("Setting dnd!");
X /** Add to the list of directives and defaults that we support implicitly. */
X dnd.addValue(_CD_KEYBOARD_TYPE, snull);
X dnd.addValue(_CD_USERCONFFILE, snull);
X@@ -95,7 +95,7 @@
X signal(SIGTERM, signalquit);
X signal(SIGABRT, signalquit);
X signal(SIGINT, signalquit);
X- signal(SIGCLD,signalchild);
X+ signal(SIGCHLD,signalchild);
X /* and for a rehash when we catch SIGHUP */
X signal(SIGHUP,signalhup);
X
X@@ -142,16 +142,16 @@
X /* Make sure we have a config file. */
X filename.setName(parsefile);
X if (!filename.exists()) {
X- msg("Creating a basic config file.");
X+ lineak_core_functions::msg("Creating a basic config file.");
X createBasic(parsefile);
X }
X
X- msg("Parsing the config files.");
X+ lineak_core_functions::msg("Parsing the config files.");
X /** Parse the users ~/.lineak/lineakd.conf file */
X if (!(got_conf = parseconf()))
X quit();
X
X- msg("Setting commands!");
X+ lineak_core_functions::msg("Setting commands!");
X usleep(400000);
X myKbd.setCommands(myConfig);
X
X@@ -165,10 +165,10 @@
X connect(keyopts,SIGNAL(apply()),this,SLOT(slotRefreshKeylist(void)));
X
X // Show the panel
X- msg("Showing the system tray.");
X+ lineak_core_functions::msg("Showing the system tray.");
X systemTrayApp->show();
X // Show all the data in the gui widgets.
X- msg("Refreshing GUI data");
X+ lineak_core_functions::msg("Refreshing GUI data");
X refreshGUIdata();
X // Test and see if there are any lineakd processes running. If there are kill them or exit.
X
X@@ -181,7 +181,7 @@
X usleep(400000);
X attempt++;
X }
X- msg("Starting lineakd");
X+ lineak_core_functions::msg("Starting lineakd");
X startLineakd();
X
X }
X@@ -235,7 +235,7 @@
X until the new file has been reparsed.*/
X
X changing_from_signal = true;
X- msg("reparsing");
X+ lineak_core_functions::msg("reparsing");
X bool res = false;
X
X if (parsefile != QString::null)
X@@ -297,7 +297,7 @@
X QMessageBox::critical(this, "KLineakConfig", "Failed to parse the configuration file.");
X return false;
X }
X- //msg("Do we have a def yet?");
X+ //lineak_core_functions::msg("Do we have a def yet?");
X /** If we parsed a definition's file */
X if (got_def) {
X string kbdtxt = myConfig[_CD_KEYBOARD_TYPE];
X@@ -306,7 +306,7 @@
X error("myConfig is empty!");
X
X if (myDef.hasKeyboard(kbdtxt)) {
X- msg("Returning the keyboard.");
X+ lineak_core_functions::msg("Returning the keyboard.");
X myKbd = myDef.getKeyboard(kbdtxt);
X }
X else {
X@@ -314,9 +314,9 @@
X return false;
X }
X
X- //msg("is myKbd empty?");
X+ //lineak_core_functions::msg("is myKbd empty?");
X if (myKbd.isEmpty()) {
X- msg("OH OH! it's an empty keyboard definition!");
X+ lineak_core_functions::msg("OH OH! it's an empty keyboard definition!");
X QString homedir = QDir::homeDirPath(); //getenv("HOME");
X homedir+=LINEAKDIR;
X homedir+=DEFFILE;
X@@ -329,13 +329,13 @@
X "%2\n").arg(LINEAKKB_FILE).arg(homedir));
X quit();
X } else
X- msg("myKbd is not empty");
X+ lineak_core_functions::msg("myKbd is not empty");
X }
X else {
X error("Attepting to load the user .conf setting before we have keyboard data!");
X return false;
X }
X- msg("Returning from parseConf");
X+ lineak_core_functions::msg("Returning from parseConf");
X return true;
X }
X
X@@ -422,7 +422,7 @@
X Return true if we hupped the daemon.
X Return false if the daemon was not hupped */
X bool KlineakConfig::hupLineakd() {
X- msg("hupLineakd()");
X+ lineak_core_functions::msg("hupLineakd()");
X msgPasser message;
X message.start();
X message.sendMessage(msgPasser::HUP,"hup");
X@@ -468,7 +468,7 @@
X /** Stop the lineakd daemon. If we killed it return true. Else if it could not be killed
X return false */
X bool KlineakConfig::stopLineakd() {
X- msg("Stopping Lineakd");
X+ lineak_core_functions::msg("Stopping Lineakd");
X msgPasser message;
X message.start();
X message.sendMessage(msgPasser::EXIT,"exit");
X@@ -640,7 +640,7 @@
X
X //changing_text_from_signal = false;
X selected_key = 0;
X- //msg("leaving setKeyboard");
X+ //lineak_core_functions::msg("leaving setKeyboard");
X }
X
X /** select a new keyboard by model name. The brand name is obtained by
X@@ -655,9 +655,9 @@
X // of the keys defined.
X myKbd.setCommands(myConfig);
X if (verbose) {
X- msg("SELECTED NEW KEYBOARD");
X+ lineak_core_functions::msg("SELECTED NEW KEYBOARD");
X cout << myKbd << endl;
X- msg("--END SELECTED NEW KEYBOARD--");
X+ lineak_core_functions::msg("--END SELECTED NEW KEYBOARD--");
X }
X
X //changing_text_from_signal = true;
X@@ -693,7 +693,7 @@
X KURL source, dest;
X QString name;
X QString returnMsg;
X- msg("Backup conffile");
X+ lineak_core_functions::msg("Backup conffile");
X name = (myConfig[_CD_USERCONFFILE]).c_str();
X if (verbose) cout << name << " to " << name + ".backup" << endl;
X source.setPath(name);
X@@ -722,14 +722,14 @@
X // Now save the thing.
X Saver tmp(myConfig.getFilename());
X if (verbose) {
X- msg("Saving!");
X+ lineak_core_functions::msg("Saving!");
X cout << myConfig << endl;
X }
X
X bool r = tmp.saveFile(myConfig);
X
X if (r)
X- msg("Saved!");
X+ lineak_core_functions::msg("Saved!");
X else
X error("Could not save the config file.");
X
X@@ -737,16 +737,16 @@
X }
X
X void KlineakConfig::onAdvancedConfigOptionsButtonClicked(void) {
X- msg("Showing Advanced Configuration Options");
X+ lineak_core_functions::msg("Showing Advanced Configuration Options");
X advancedKbdConfig->setData(myConfig);
X advancedKbdConfig->show();
X advancedKbdConfig->raise();
X }
X
X void KlineakConfig::onAdvancedKeyOptionsButtonClicked(void) {
X- msg("onAdvancedKeyOptionsButtonClicked()");
X+ lineak_core_functions::msg("onAdvancedKeyOptionsButtonClicked()");
X if (lstAvailableKeys->currentItem() == 0)
X- msg("The current item is null.");
X+ lineak_core_functions::msg("The current item is null.");
X else {
X string key = lstAvailableKeys->currentItem()->text(0).latin1();
X //cout << "Outputting myKbd" << endl;
END-of-klineakconfig/files/patch-klineakconfig__klineakconfig.cpp
echo x - klineakconfig/distinfo
sed 's/^X//' >klineakconfig/distinfo << 'END-of-klineakconfig/distinfo'
XMD5 (lineak/klineakconfig-0.9.tar.gz) = b673575854f8d31443e05614ebb3e238
XSHA256 (lineak/klineakconfig-0.9.tar.gz) = 00f2f6f30e03b59b1b6be952869f56e82eb0f95ebf27059394254da3319ebce8
XSIZE (lineak/klineakconfig-0.9.tar.gz) = 970001
END-of-klineakconfig/distinfo
echo x - klineakconfig/pkg-descr
sed 's/^X//' >klineakconfig/pkg-descr << 'END-of-klineakconfig/pkg-descr'
XThis is a KDE version of the gtk program lineakconfig by Mark Smulders. It is
Xfor configuring a lineak config file for use with the lineakd daemon that set's
Xup and handles the control of your easy access keys.
END-of-klineakconfig/pkg-descr
echo x - klineakconfig/pkg-plist
sed 's/^X//' >klineakconfig/pkg-plist << 'END-of-klineakconfig/pkg-plist'
Xbin/klineakconfig
Xshare/doc/HTML/en/klineakconfig/index.docbook
Xshare/doc/HTML/en/klineakconfig/index.cache.bz2
Xshare/doc/HTML/en/klineakconfig/common
Xshare/locale/de/LC_MESSAGES/klineakconfig.mo
Xshare/locale/es/LC_MESSAGES/klineakconfig.mo
Xshare/applnk/Applications/klineakconfig.desktop
Xshare/icons/locolor/32x32/apps/klineakconfig.png
Xshare/icons/locolor/16x16/apps/klineakconfig.png
Xshare/icons/hicolor/16x16/apps/klineakconfig.png
Xshare/icons/hicolor/32x32/apps/klineakconfig.png
Xshare/apps/klineakconfig/pics/lineak_logo.xpm
Xshare/apps/klineakconfig/pics/noimage.xpm
Xshare/apps/klineakconfig/pics/warning.xpm
Xshare/apps/klineakconfig/pics/stop.gif
X at dirrm share/doc/HTML/en/klineakconfig
X at dirrmtry share/locale/de/LC_MESSAGES
X at dirrmtry share/locale/de
X at dirrmtry share/locale/es/LC_MESSAGES
X at dirrmtry share/locale/es
X at dirrm share/apps/klineakconfig/pics
X at dirrm share/apps/klineakconfig
END-of-klineakconfig/pkg-plist
echo x - klineakconfig/Makefile
sed 's/^X//' >klineakconfig/Makefile << 'END-of-klineakconfig/Makefile'
X# New ports collection makefile for: klineakconfig
X# Date created: 5 July 2002
X# Whom: Kay Lehmann <kay_lehmann at web.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME= klineakconfig
XPORTVERSION= 0.9
XCATEGORIES= sysutils
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= lineak
XDIST_SUBDIR= lineak
X
XMAINTAINER= kay_lehmann at web.de
XCOMMENT= Configure lineakd thru a KDE interface
X
XLIB_DEPENDS= lineak.8:${PORTSDIR}/sysutils/lineakd
X
XUSE_KDELIBS_VER=3
XUSE_GMAKE= yes
XGNU_CONFIGURE= yes
XUSE_AUTOTOOLS= libtool:15
XCONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
X LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
XCONFIGURE_ARGS+= --program-prefix=''
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X @${REINPLACE_CMD} -e 's|-ldl||' ${WRKSRC}/configure
X @${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure
X
X.include <bsd.port.post.mk>
END-of-klineakconfig/Makefile
exit
--- klineakconfig-0.9.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list