diff options
author | B. Watson <yalhcru@gmail.com> | 2017-02-10 14:51:38 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-02-11 07:24:00 +0700 |
commit | d10ba005eb0195a6dc429b7a0b2c900dcabc2773 (patch) | |
tree | d650a4971bcc842016c5b12b5ebb27ca72b0c5d4 /system/yeahconsole | |
parent | 16670f8cac2612a857fd20fac48a8803dc65fea6 (diff) |
system/yeahconsole: New maintainer, add man page, various fixes.
Diffstat (limited to 'system/yeahconsole')
-rw-r--r-- | system/yeahconsole/50-display.patch | 16 | ||||
-rw-r--r-- | system/yeahconsole/yeahconsole.1 | 147 | ||||
-rw-r--r-- | system/yeahconsole/yeahconsole.SlackBuild | 39 | ||||
-rw-r--r-- | system/yeahconsole/yeahconsole.info | 4 | ||||
-rw-r--r-- | system/yeahconsole/yeahconsole.xml | 207 |
5 files changed, 399 insertions, 14 deletions
diff --git a/system/yeahconsole/50-display.patch b/system/yeahconsole/50-display.patch new file mode 100644 index 0000000000000..f981fce1138f9 --- /dev/null +++ b/system/yeahconsole/50-display.patch @@ -0,0 +1,16 @@ +From: Damián Viano <debian@damianv.com.ar> +Subject: Fixes segfault when $DISPLAY is not defined/can't be opened + +diff -Nura yeahconsole-0.3.4/yeahconsole.c yeahconsole-0.3.4.r.bk/yeahconsole.c +--- yeahconsole-0.3.4/yeahconsole.c 2006-03-11 15:26:00.000000000 -0300 ++++ yeahconsole-0.3.4.r.bk/yeahconsole.c 2006-07-01 17:49:14.000000000 -0300 +@@ -107,7 +107,8 @@ + } + + if (!(dpy = XOpenDisplay(NULL))) { +- fprintf(stderr, " can not open dpy %s", XDisplayName(NULL)); ++ fprintf(stderr, "Can not open display %s\n", XDisplayName(NULL)); ++ exit(1); + } + screen = DefaultScreen(dpy); + root = RootWindow(dpy, screen); diff --git a/system/yeahconsole/yeahconsole.1 b/system/yeahconsole/yeahconsole.1 new file mode 100644 index 0000000000000..a3693e366ae7f --- /dev/null +++ b/system/yeahconsole/yeahconsole.1 @@ -0,0 +1,147 @@ +'\" t +.\" Title: YEAHCONSOLE +.\" Author: [see the "AUTHOR" section] +.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/> +.\" Date: April 15, 2006 +.\" Manual: SlackBuilds.org +.\" Source: yeahconsole +.\" Language: English +.\" +.TH "YEAHCONSOLE" "1" "April 15, 2006" "yeahconsole" "SlackBuilds.org" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +yeahconsole \- drop\-down X terminal emulator wrapper +.SH "SYNOPSIS" +.HP \w'\fByeahconsole\fR\ 'u +\fByeahconsole\fR [\fB\-h\fR] [\fB\-e\ \fR\fB\fIcommand\fR\fR] +.SH "DESCRIPTION" +.PP +This manual page documents briefly the +\fByeahconsole\fR +command\&. +.PP +This manual page was written for the +Debian(TM) +distribution because the original program does not have a manual page\&. +.PP +\fByeahconsole\fR +is a wrapper for X terminal emulators that provide a drop\-down terminal embedding other terminal emulators +.SH "OPTIONS" +.PP +A summary of options is included below\&. Any other argument is passed to the X terminal emulator\&. +.PP +\fB\-h\fR +.RS 4 +Show summary of options and supported xresources\&. +.RE +.PP +\fB\-e\fR \fIcommand\fR +.RS 4 +\fIcommand\fR +will be run in the X terminal emulator used\&. If specified this must be the last option since everything after the \-e will be interpreted as the +\fIcommand\fR\&. +.RE +.SH "RESOURCES" +.PP +The resources from the embedded X terminal emulator will be used and are documented in the corresponding manpage for your X terminal emulator\&. The specific resources for yeahconsole follow: +.PP +\fBrestart\fR +.RS 4 +0 or 1, 1 should restart the terminal\&. Default is 0\&. +.RE +.PP +\fBterm\fR +.RS 4 +terminal to use, valid values: urxvt, urxvtc, xterm\&. Default is xterm\&. +.RE +.PP +\fBscreenWidth\fR +.RS 4 +width of the terminal\&. Default is the display width\&. +.RE +.PP +\fBconsoleHeight\fR +.RS 4 +number of lines of the console\&. Default is 10\&. +.RE +.PP +\fBxOffset\fR +.RS 4 +x position\&. Default is set to 0\&. +.RE +.PP +\fBaniDelay\fR +.RS 4 +delay for the slide animation\&. Default is 40\&. +.RE +.PP +\fBstepSize\fR +.RS 4 +step size in pixels for the animation 0 will disable the animation\&. Default is set 1\&. +.RE +.PP +\fBhandleWidth\fR +.RS 4 +width for the resize handle\&. Default is 3\&. +.RE +.PP +\fBhandleColor\fR +.RS 4 +color for the resize handle\&. Default is grey70\&. +.RE +.PP +\fBtoggleKey\fR +.RS 4 +key combo that toggles yeahconsole\&. Default is ControlAlt+y\&. +.RE +.PP +\fBkeyBigger\fR +.RS 4 +increase height of yeahconsole\&. Default is Control+KP_Add\&. +.RE +.PP +\fBkeySmaller\fR +.RS 4 +decrease height of yeahconsole\&. Default is Control+KP_Subtract\&. +.RE +.PP +\fBkeyFull\fR +.RS 4 +toggle fullscreen mode\&. Default is Alt+F11\&. +.RE +.SH "SEE ALSO" +.PP +xterm (1), rxvt (1)\&. +.SH "AUTHOR" +.PP +This manual page was written by +DamiánViano<debian@damianv\&.com\&.ar> +for the +Debian(TM) +system (but may be used by others)\&. Permission is granted to copy, distribute and/or modify this document under the terms of the +GNU +General Public License, Version 2 any later version published by the Free Software Foundation\&. +.PP +On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL\&. +.SH "COPYRIGHT" +.br +Copyright \(co 2006 Damián Viano +.br diff --git a/system/yeahconsole/yeahconsole.SlackBuild b/system/yeahconsole/yeahconsole.SlackBuild index b3877c08187e7..40028c8d537ef 100644 --- a/system/yeahconsole/yeahconsole.SlackBuild +++ b/system/yeahconsole/yeahconsole.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for yeahconsole -# Copyright 2009 Pablo Santamaria (pablosantamaria at gmail.com) +# Copyright 2009 Pablo Santamaria (email removed) # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,14 +22,25 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Now maintained by B. Watson <yalhcru@gmail.com> + +# 20170210 bkw: +# - Take over maintenance +# - BUILD=2 +# - i486 => i586 +# - include bugfix patch and man page from debian +# - fix the make command, LIBDIR => LIB_DIRS, should make life easier +# for multilib users. +# - minor cosmetic fixes + PRGNAM=yeahconsole VERSION=${VERSION:-0.3.4} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -40,8 +51,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -69,19 +80,23 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# apply patch from debian, fixes a segfault when DISPLAY isn't set. +patch -p1 < $CWD/50-display.patch -make FLAGS="$SLKCFLAGS" LIBDIR="-L/usr/X11R6/lib$LIBDIRSUFFIX" - +make FLAGS="$SLKCFLAGS" LIB_DIRS="-L/usr/lib$LIBDIRSUFFIX" +strip $PRGNAM mkdir -p $PKG/usr/bin make install PREFIX=$PKG/usr -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +# man page borrowed from Debian. its source is debian/yeahconsole.xml from +# http://http.debian.net/debian/pool/main/y/yeahconsole/yeahconsole_0.3.4-3.debian.tar.xz +# I modified it slightly, then generated the man page thus: +# xsltproc --nonet /usr/share/xml/docbook/xsl-stylesheets-1.78.1/manpages/docbook.xsl yeahconsole.xml +mkdir -p $PKG/usr/man/man1 +gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - README LICENSE \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/system/yeahconsole/yeahconsole.info b/system/yeahconsole/yeahconsole.info index fa5ef02361e9d..c8ec72a50f520 100644 --- a/system/yeahconsole/yeahconsole.info +++ b/system/yeahconsole/yeahconsole.info @@ -6,5 +6,5 @@ MD5SUM="83a2367f9b4857fed02464b0e8a6595a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Pablo Santamaria" -EMAIL="pablosantamaria@gmail.com" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/system/yeahconsole/yeahconsole.xml b/system/yeahconsole/yeahconsole.xml new file mode 100644 index 0000000000000..446c7fc01861d --- /dev/null +++ b/system/yeahconsole/yeahconsole.xml @@ -0,0 +1,207 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" +"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + + + <!ENTITY dhfirstname "<firstname>Damián</firstname>"> + <!ENTITY dhsurname "<surname>Viano</surname>"> + <!ENTITY dhdate "<date>April 15, 2006</date>"> + <!ENTITY dhsection "<manvolnum>1</manvolnum>"> + <!ENTITY dhemail "<email>debian@damianv.com.ar</email>"> + <!ENTITY dhusername "&dhfirstname; &dhsurname;"> + <!ENTITY dhucpackage "<refentrytitle>YEAHCONSOLE</refentrytitle>"> + <!ENTITY dhpackage "yeahconsole"> + + <!ENTITY debian "<productname>Debian</productname>"> + <!ENTITY gnu "<acronym>GNU</acronym>"> + <!ENTITY gpl "&gnu; <acronym>GPL</acronym>"> +]> + +<refentry> + <refentryinfo> + <title>SlackBuilds.org</title> + <productname>&dhpackage;</productname> + <address> + &dhemail; + </address> + <copyright> + <year>2006</year> + <holder>&dhusername;</holder> + </copyright> + &dhdate; + </refentryinfo> + <refmeta> + &dhucpackage; + + &dhsection; + </refmeta> + <refnamediv> + <refname>&dhpackage;</refname> + + <refpurpose>drop-down X terminal emulator wrapper</refpurpose> + </refnamediv> + <refsynopsisdiv> + <cmdsynopsis> + <command>&dhpackage;</command> + + <arg><option>-h</option></arg> + <arg><option>-e <replaceable>command</replaceable></option></arg> + + </cmdsynopsis> + </refsynopsisdiv> + <refsect1> + <title>DESCRIPTION</title> + + <para>This manual page documents briefly the + <command>&dhpackage;</command> command.</para> + + <para>This manual page was written for the &debian; distribution + because the original program does not have a manual page.</para> + + <para><command>&dhpackage;</command> is a wrapper for X terminal emulators that provide a drop-down terminal embedding other terminal emulators</para> + + </refsect1> + <refsect1> + <title>OPTIONS</title> + + <para>A summary of options is included below. Any other argument is passed to the X terminal emulator.</para> + + <variablelist> + <varlistentry> + <term><option>-h</option> + </term> + <listitem> + <para>Show summary of options and supported xresources.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-e</option> <replaceable>command</replaceable> + </term> + <listitem> + <para><replaceable>command</replaceable> will be run in the X terminal emulator used. If specified this must be the last option since everything after the -e will be interpreted as the <replaceable>command</replaceable>.</para> + </listitem> + </varlistentry> + </variablelist> + </refsect1> + <refsect1> + <title>RESOURCES</title> + + <para>The resources from the embedded X terminal emulator will be used and are documented in the corresponding manpage for your X terminal emulator. The specific resources for &dhpackage; follow:</para> + + <variablelist> + <varlistentry> + <term><option>restart</option> + </term> + <listitem> + <para>0 or 1, 1 should restart the terminal. Default is 0.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>term</option> + </term> + <listitem> + <para>terminal to use, valid values: urxvt, urxvtc, xterm. Default is xterm.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>screenWidth</option> + </term> + <listitem> + <para>width of the terminal. Default is the display width.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>consoleHeight</option> + </term> + <listitem> + <para>number of lines of the console. Default is 10.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>xOffset</option> + </term> + <listitem> + <para>x position. Default is set to 0.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>aniDelay</option> + </term> + <listitem> + <para>delay for the slide animation. Default is 40.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>stepSize</option> + </term> + <listitem> + <para>step size in pixels for the animation 0 will disable the animation. Default is set 1.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>handleWidth</option> + </term> + <listitem> + <para>width for the resize handle. Default is 3.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>handleColor</option> + </term> + <listitem> + <para>color for the resize handle. Default is grey70.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>toggleKey</option> + </term> + <listitem> + <para>key combo that toggles yeahconsole. Default is ControlAlt+y.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>keyBigger</option> + </term> + <listitem> + <para>increase height of yeahconsole. Default is Control+KP_Add.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>keySmaller</option> + </term> + <listitem> + <para>decrease height of yeahconsole. Default is Control+KP_Subtract.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>keyFull</option> + </term> + <listitem> + <para>toggle fullscreen mode. Default is Alt+F11.</para> + </listitem> + </varlistentry> + </variablelist> + </refsect1> + <refsect1> + <title>SEE ALSO</title> + + <para>xterm (1), rxvt (1).</para> + + </refsect1> + <refsect1> + <title>AUTHOR</title> + + <para>This manual page was written by &dhusername; &dhemail; for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + </para> + <para> + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + </para> + + </refsect1> +</refentry> + |