From d10ba005eb0195a6dc429b7a0b2c900dcabc2773 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 10 Feb 2017 14:51:38 -0500 Subject: system/yeahconsole: New maintainer, add man page, various fixes. --- system/yeahconsole/50-display.patch | 16 +++ system/yeahconsole/yeahconsole.1 | 147 +++++++++++++++++++++ system/yeahconsole/yeahconsole.SlackBuild | 39 ++++-- system/yeahconsole/yeahconsole.info | 4 +- system/yeahconsole/yeahconsole.xml | 207 ++++++++++++++++++++++++++++++ 5 files changed, 399 insertions(+), 14 deletions(-) create mode 100644 system/yeahconsole/50-display.patch create mode 100644 system/yeahconsole/yeahconsole.1 create mode 100644 system/yeahconsole/yeahconsole.xml (limited to 'system') diff --git a/system/yeahconsole/50-display.patch b/system/yeahconsole/50-display.patch new file mode 100644 index 0000000000..f981fce113 --- /dev/null +++ b/system/yeahconsole/50-display.patch @@ -0,0 +1,16 @@ +From: Damián Viano +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 0000000000..a3693e366a --- /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 +.\" 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 +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 b3877c0818..40028c8d53 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 + +# 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 fa5ef02361..c8ec72a50f 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 0000000000..446c7fc018 --- /dev/null +++ b/system/yeahconsole/yeahconsole.xml @@ -0,0 +1,207 @@ + +Damián"> + Viano"> + April 15, 2006"> + 1"> + debian@damianv.com.ar"> + + YEAHCONSOLE"> + + + Debian"> + GNU"> + GPL"> +]> + + + + SlackBuilds.org + &dhpackage; +
+ &dhemail; +
+ + 2006 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + drop-down X terminal emulator wrapper + + + + &dhpackage; + + + + + + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; command. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + + &dhpackage; is a wrapper for X terminal emulators that provide a drop-down terminal embedding other terminal emulators + + + + OPTIONS + + A summary of options is included below. Any other argument is passed to the X terminal emulator. + + + + + + + Show summary of options and supported xresources. + + + + command + + + command 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 command. + + + + + + RESOURCES + + 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: + + + + + + + 0 or 1, 1 should restart the terminal. Default is 0. + + + + + + + terminal to use, valid values: urxvt, urxvtc, xterm. Default is xterm. + + + + + + + width of the terminal. Default is the display width. + + + + + + + number of lines of the console. Default is 10. + + + + + + + x position. Default is set to 0. + + + + + + + delay for the slide animation. Default is 40. + + + + + + + step size in pixels for the animation 0 will disable the animation. Default is set 1. + + + + + + + width for the resize handle. Default is 3. + + + + + + + color for the resize handle. Default is grey70. + + + + + + + key combo that toggles yeahconsole. Default is ControlAlt+y. + + + + + + + increase height of yeahconsole. Default is Control+KP_Add. + + + + + + + decrease height of yeahconsole. Default is Control+KP_Subtract. + + + + + + + toggle fullscreen mode. Default is Alt+F11. + + + + + + SEE ALSO + + xterm (1), rxvt (1). + + + + AUTHOR + + 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. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ -- cgit v1.2.3