debian/0000755000000000000000000000000012220472203007160 5ustar debian/upstream.changelog0000644000000000000000000000732312220472203012676 0ustar commit 457969381869f9f3ecbb462bf40f053f2a748a02 Author: Roberto E. Vargas Caballero Date: Mon Aug 12 15:25:18 2013 +0200 Add terminfo definitions for terminals with meta key Some programs don't check the value of km and use smm and rmm capabilites, and they cause the terminal change to meta enabled mode even in cases where is not desirable. Allmost all people is using the terminal waiting that meta sends escape, so rmm and smm are not needed. If someone needs meta sets 8 bit he can use the correct terminfo definition in TERM. commit 347a45c35299c94e97c976b6e1df383dc2b8fbda Author: Eon S. Jeon Date: Mon Aug 5 16:37:59 2013 -0400 Fix signess of tdefcolor tdefcolor() returns -1 on error, while its return type is unsigned long. At the same time, line 1724 and 1731 are checking the positivity of its unsigned return value. commit 22eeda56b7c1532773343811dee1f76c0999d01c Author: Alexander Sedov Date: Mon Jul 29 11:50:44 2013 +0400 Fixed memory leak in xsettitle(). commit 86c03ddc82d2f9f84f22f79741e13ade0e0b8cd1 Author: Michael Forney Date: Thu Jul 25 16:24:16 2013 -0700 Fix blink mode check ATTR_BLINK is an attribute for a Glyph and will not be set in term.mode. commit 7e3cff33ffbd69a112fa4071a9f0ed2dc93bfc57 Author: Eric Pruitt Date: Mon Aug 5 11:33:37 2013 +0200 Use character size scaling factors The bounding boxes for characters can be scaled using "cwscale" and "chscale" to scale the width and height respectively. commit aaee0e8b28a353c215b6d1c8fc06d20038d7b426 Author: Roberto E. Vargas Caballero Date: Sat Jul 20 21:52:40 2013 +0200 Reload colors in reset Colors definition can be changed using a OSC sequence, so we have to reload them if we want be sure all the colors are the correct. Could be desirable free the colors allocated due to rgb colors and inverse colors (XftColorAllocValues in xdraws), but it is impossible due we use the same structure for all of them. commit 8dde8cde41caa311718d2b990ea3356272ee25ee Author: Roberto E. Vargas Caballero Date: Fri Jul 19 20:34:36 2013 +0200 Add RGB color definition This patch uses the bit 24 in the color descriptor as an indicator of RGB color, so we can take the values and generating the XftColour directly in xdraws. commit 33ad83d49213749f4fcec850327f57a33ca8b921 Author: Eon S. Jeon Date: Fri Jul 19 01:07:02 2013 -0400 Improved font caching I made a patch that improves the performance of font caching mechanism. This is based on a funny behaviour of FontConfig: it was handling FcCharSet in a somewhat unexpected way. So, we are currently adding "a character" to a new FcCharSet, and then add it to a FcPattern. However, if we toss the FcPattern to FontConfig, it loads the entire language(charset) that contains the character we gave. That is, we don't always have to load a new font for each unknown character. Instead, we can reused cached fonts, and this significantly reduces the number of calls to extremely slow FontConfig matching functions. One more thing. I found that, in libXft, there's a function called XftCharExists. XftCharIndex internally calls this function, and does more stuffs if the character does exist. Since the returned index is never used in st, we should call XftCharExists instead of XftCharIndex. Please note that I already made this change in the patch. commit 40e4d76d227d9c517054036f546acd49431bca42 Author: Markus Teich Date: Sat Jun 22 23:07:00 2013 +0200 debian/postinst0000755000000000000000000000050212220472203010766 0ustar #!/bin/sh set -e #DEBHELPER# action="$1" oldversion="$2" update-alternatives \ --install /usr/bin/x-terminal-emulator \ x-terminal-emulator /usr/bin/stterm 15 \ --slave /usr/share/man/man1/x-terminal-emulator.1.gz \ x-terminal-emulator.1.gz \ /usr/share/man/man1/stterm.1.gz # End of file debian/clean0000644000000000000000000000003612220472203010164 0ustar debian/*.1 st stterm config.h debian/watch0000644000000000000000000000012712220472203010211 0ustar version=3 opts="dversionmangle=s//0.0/" \ http://st.suckless.org/ .*tip(.*)\.tar\.gz debian/README.Debian-source0000644000000000000000000000054012220472203012516 0ustar Upstream source for Debian --------------------------- The original package's binary "st" was renamed to "stterm" to follow the naming of similar terminal programs (xterm, aterm, dtterm ...). The upstream sources archive st.tar.gz were renamed and repacked with debian/repack.sh -- Jari Aalto , Fri, 11 Dec 2009 11:59:09 +0200 debian/rules0000755000000000000000000000446612220472203010252 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 PACKAGE = stterm # Needed for st.1 fix up VERSION = 0.4.1 ORIGBIN = st CHANGELOG = debian/upstream.changelog UPSTREAM_DIR = ../upstream.git UPSTREAM_VCS = http://git.suckless.org/st BIN = $(PACKAGE) PKGDIR = $(CURDIR)/debian/$(PACKAGE) BINDIR = $(PKGDIR)/usr/bin SHAREROOTDIR = $(PKGDIR)/usr/share DOCROOTDIR = $(SHAREROOTDIR)/doc PKGDOCDIR = $(DOCROOTDIR)/$(PACKAGE) TERMINFO = $(PKGDIR)/usr/share/terminfo MANROOTDIR = $(SHAREROOTDIR)/man MAN1DIR = $(MANROOTDIR)/man1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed # Needed for gcc: # warning: implicit declaration of function 'unsetenv' # warning: implicit declaration of function 'setenv' # warning: implicit declaration of function 'nanosleep' # warning: implicit declaration of function 'kill' export DEB_CFLAGS_MAINT_APPEND += -D_POSIX_C_SOURCE=200112L # warning: implicit declaration of function 'strsep' export DEB_CFLAGS_MAINT_APPEND += \ -D_BSD_SOURCE -D_XOPEN_SOURCE=600 # From original sources: config.mk CFLAGS += -std=c99 --param=ssp-buffer-size=4 \ -I/usr/include -I/usr/X11R6/include -DVERSION=\"0.4.1\" \ $$(pkg-config --cflags freetype2) LDFLAGS += -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -lutil -lXext -lXft -lfontconfig get-changelog: [ -d $(UPSTREAM_DIR) ] || git clone $(UPSTREAM_VCS) $(UPSTREAM_DIR) pwd=$$(pwd); \ cd $(UPSTREAM_DIR) && git log | head -n 100 | \ sed 's/ *$$//' > "$$pwd/$(CHANGELOG)" terminfo: install -m 755 -d $(TERMINFO)/s TERMINFO=$(TERMINFO) tic $(ORIGBIN).info override_dh_auto_build: # Can't inject build flags to makefile; compile by hand cp config.def.h config.h $(CC) $(CFLAGS) $(CPPFLAGS) $(ORIGBIN).c -o $(BIN) $(LDFLAGS) rm -f config.h override_dh_installinfo: # Disable; the *.info is not a info(1) but a terminfo file override_dh_installchangelogs: dh_installchangelogs $(CHANGELOG) override_dh_auto_install: terminfo # Upstream no good. Calls tic(1) which writes to $HOME install -m 755 -D $(BIN) $(BINDIR)/$(BIN) install -m 644 -D \ $(ORIGBIN).info \ $(PKGDOCDIR)/examples/$(PACKAGE).terminfo install -D st.1 $(MAN1DIR)/stterm.1 sed --in-place "s/-VERSION/-$(VERSION)/" $(MAN1DIR)/stterm.1 %: dh $@ .PHONY: man terminfo # End of file debian/changelog0000644000000000000000000001507312220472203011040 0ustar stterm (0.4.1+20130921+giteeae9b0-1) unstable; urgency=low * New upstream release. * pod2man.mk, debian-vars.mk, stterm.1.pod, stterm.manpages - Delete; no longer needed (Closes: #724096). * debian/patch - Refresh patches. * debian/rules - (man): delete. - (override_dh_auto_install): install manual page. -- Jari Aalto Wed, 25 Sep 2013 08:27:18 +0300 stterm (0.4.1+20130812+git4579693-1) unstable; urgency=low * New upstream release. * debian/control - (Provides): add x-terminal-emulator. * debian/upstream.changelog - Sync with release. * debian/patches - Sync with release (quilt refresh). - (36, 40): New. Change command line option form -t to -T according to policy: 11.8.3 Packages providing a terminal emulator. * debian/{postinst,prerm} - New. Install x-terminal-emulator alternatives. * debian/repack.sh - Minor updates. * debian/rules - (get-changelog): Clean EOL whitespaces. * debian/*.mk - Minor updates. -- Jari Aalto Fri, 16 Aug 2013 09:04:29 +0300 stterm (0.4.1+20130609+git5d3318c-1) unstable; urgency=low * New upstream release. * debian/copyright - Sync emails and license text * debian/upstream.changelog - Sync with release. -- Jari Aalto Thu, 13 Jun 2013 10:48:23 +0300 stterm (0.4.1+20130526+gitb514410-1) unstable; urgency=low * New upstream release. * debian/control - (Description): Add reference to suckless tools and mention original binary name "st". * debian/patches - Sync with release. - (20): Update *.info file terminal descriptions. - (35): Update manual page for name stterm. * debian/upstream.changelog - Sync with release. -- Jari Aalto Fri, 31 May 2013 12:44:29 +0300 stterm (0.4.1+20130511+git8f47c4a-1) unstable; urgency=low * New upstream release * debian/copyright - Update year. * debian/rules - (get-changelog): Update to new Git repository. * debian/upstream.changelog - Sync with release (Closes: #709318). -- Jari Aalto Thu, 23 May 2013 10:51:36 +0300 stterm (0.4.1+20130501+git8618386-1) unstable; urgency=low * New upstream release (Closes: #706549). * debian/copyright - (X-Vcs-Git): Update from Hg to Git repository. * debian/patches - (12, 13, 20, 30): Refresh for current release. * debian/rules - Update build flags for current release. E.g VERSION 0.4.1. -- Jari Aalto Wed, 01 May 2013 22:14:31 +0300 stterm (0.3+20121116+hg424-1) unstable; urgency=low * New upstream release. * debian/control - (Build-Depends): Add libfreetype6-dev, libxext-dev, pkg-config, libxft-dev. - (Standards-Version): Update to 3.9.4. * debian/patches - (12, 13, 20): Refresh for current release. - (30): New. Use name stterm-256. Patch thanks to John Vogel (Closes: #693494). * debian/rules - (CFLAGS, LDFLAGS): Update for latest release. -- Jari Aalto Sat, 24 Nov 2012 12:48:42 +0200 stterm (0.0~20120227+hg244-1) unstable; urgency=low * New upstream release. * debian/patches - (13): New. Update name st to stterm in window title. -- Jari Aalto Sat, 21 Jul 2012 10:57:50 +0300 stterm (0.0~20120124+hg226-2) unstable; urgency=low * debian/compat - Update to 9. * debian/control - (Build-Depends): Update to debhelper 9. - (Standards-Version): Update to 3.9.3.1. * debian/copyright - Update to format 1.0. * debian/rules - Use hardened build flags http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags - (override_dh_auto_build): New. -- Jari Aalto Fri, 23 Mar 2012 15:45:22 -0400 stterm (0.0~20120124+hg226-1) unstable; urgency=low * New upstream release * debian/rules - Set LDFLAGS via dpkg-buildflags(1). - Use hardened CFLAGS (release goal). http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags -- Jari Aalto Sun, 05 Feb 2012 10:11:26 +0200 stterm (0.0~20110920+hg212-4) unstable; urgency=low * debian/rules - (terminfo): New. Run tic(1) at install time (Closes: #656557). * debian/{postinst,postrm}: Delete. Tic is now called in debian/rules. -- Jari Aalto Mon, 23 Jan 2012 21:09:31 +0200 stterm (0.0~20110920+hg212-3) unstable; urgency=low * debian/postinst - Delete files created in postinst by tic(1) (Closes: #656557). -- Jari Aalto Fri, 20 Jan 2012 15:36:11 +0200 stterm (0.0~20110920+hg212-2) unstable; urgency=low * debian/patches - (20): Correct terminal id from "st" to "stterm" (Closes: #656114). -- Jari Aalto Tue, 17 Jan 2012 20:27:48 +0200 stterm (0.0~20110920+hg212-1) unstable; urgency=low * New upstream release. * debian/clean - Add config.h. * debian/compat - Update to 8. * debian/control - (Build-Depends): debhelper 8. - (Description): update firs line. - (Standards-Version): Update to 3.9.2. * debian/copyright - Update to DEP 5. * debian/patches - (10): Delete. Accepted upstream: options -V, --version. - (12): New. Replaced by patches 11-fix-compile and 12-version. - (13): Delete. Accepted upstream: do not display Ctrl, Alt key messages. - (20): Refresh. * debian/rules - (get-changelog): update instructions. -- Jari Aalto Tue, 20 Sep 2011 12:56:21 +0300 stterm (0.0~20091219+hg68-4) unstable; urgency=low * debian/control - (Description): Correct units to MiB (Closes: #584649). -- Jari Aalto Sat, 05 Jun 2010 13:27:55 +0300 stterm (0.0~20091219+hg68-3) unstable; urgency=low * debian/upstream.changelog - Update content (Closes: #583920). -- Jari Aalto Wed, 02 Jun 2010 08:34:54 +0300 stterm (0.0~20091219+hg68-2) unstable; urgency=low * Bug fix release - Prevent tic(1) from writing to $HOME and handle terminfo file install in postinst script (FTBFS; Closes: #583627). * debian/patches - (20): New. Change terminal name from st to stterm. * debian/postinst - New file. * debian/rules - Move to full dh(1). * debian/stterm.install - Delete. Handled in debian/rules. * debian/upstream.changelog - New file. -- Jari Aalto Sat, 29 May 2010 09:14:51 +0300 stterm (0.0~20091219+hg68-1) unstable; urgency=low * Initial release (Closes: #560596). -- Jari Aalto Sun, 14 Feb 2010 01:02:03 +0200 debian/prerm0000755000000000000000000000025412220472203010234 0ustar #!/bin/sh set -e #DEBHELPER# if [ "$1" = remove ] || [ "$1" = deconfigure ]; then update-alternatives --remove x-terminal-emulator /usr/bin/stterm fi # End of file debian/info0000644000000000000000000000001012220472203010025 0ustar st.info debian/patches/0000755000000000000000000000000012220472203010607 5ustar debian/patches/12-output-version.patch0000644000000000000000000000111312220472203015067 0ustar From: Jari Aalto Date: Tue, 20 Sep 2011 12:43:55 +0300 Subject: Add Copyright word and use name stterm --- st.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/st.c +++ b/st.c @@ -3723,8 +3723,8 @@ void usage(void) { - die("%s " VERSION " (c) 2010-2013 st engineers\n" \ - "usage: st [-a] [-v] [-c class] [-f font] [-g geometry] [-o file]" \ + die("%s " VERSION " (C) 2010-2013 stterm engineers\n" \ + "usage: stterm [-a] [-v] [-c class] [-f font] [-g geometry] [-o file]" \ " [-t title] [-w windowid] [-e command ...]\n", argv0); } debian/patches/30-config.def.h.patch0000644000000000000000000000057512220472203014307 0ustar From: Jari Aalto Subject: Rename from st to stterm --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/config.def.h +++ b/config.def.h @@ -44,7 +44,7 @@ static int bellvolume = 0; /* TERM value */ -static char termname[] = "st-256color"; +static char termname[] = "stterm-256color"; static unsigned int tabspaces = 8; debian/patches/35-man-debian.patch0000644000000000000000000000213412220472203014050 0ustar From: Jari Aalto Subject: Sync name with Debian package stterm --- st.1 | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) --- a/st.1 +++ b/st.1 @@ -1,8 +1,8 @@ -.TH ST 1 st\-VERSION +.TH STTERM 1 stterm\-VERSION .SH NAME -st \- simple terminal +stterm \- suckless tools terminal aka simple terminal .SH SYNOPSIS -.B st +.B stterm .RB [ \-a ] .RB [ \-c .IR class ] @@ -20,8 +20,13 @@ .RB [ \-e .IR command ...] .SH DESCRIPTION -.B st -is a simple terminal emulator. +.B stterm +is a simple terminal emulator. The original project released the binary under name "st". If you would like to access the program by a short name, add an alias or function to the shell startup file: +.TP +.in 4 +.DS I 2 +alias st=stterm # E.g. in ~/.bashrc for bash; consult your $SHELL +.DE .SH OPTIONS .TP .B \-a @@ -64,7 +69,7 @@ .B must be the last option on the command line, as in xterm / rxvt. .SH CUSTOMIZATION -.B st +.B stterm can be customized by creating a custom config.h and (re)compiling the source code. This keeps it fast, secure and simple. .SH AUTHORS debian/patches/36-man-t-option.patch0000644000000000000000000000304512220472203014402 0ustar From: Jari Aalto Subject: Change option -t to -T x-terminal emulator must provide option -T. See 11.8.3 Packages providing a terminal emulator http://www.debian.org/doc/debian-policy/ch-customized-programs.html#s11.8.3 --- st.1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) --- a/st.1 +++ b/st.1 @@ -12,7 +12,7 @@ .IR geometry ] .RB [ \-o .IR file ] -.RB [ \-t +.RB [ \-T .IR title ] .RB [ \-w .IR windowid ] @@ -38,10 +38,10 @@ .BI \-f " font" defines the .I font -to use when st is run. +to use. .TP .BI \-g " geometry" -defines the X11 geometry string, which will fixate the height and width of st. +defines the X11 geometry string, which will fixate the height and width. The form is [=][{xX}][{+-}{+-}]. See .BR XParseGeometry (3) for further details. @@ -49,21 +49,21 @@ .BI \-o " file" writes all the I/O to .I file. -This feature is useful when recording st sessions. A value of "-" means +This feature is useful when recording sessions. A value of "-" means standard output. .TP -.BI \-t " title" -defines the window title (default 'st'). +.BI \-T " title" +defines the window title (default 'stterm'). .TP .BI \-w " windowid" -embeds st within the window identified by +embeds stterm within the window identified by .I windowid .TP .B \-v prints version information to stderr, then exits. .TP .BI \-e " program " [ " arguments " "... ]" -st executes +executes .I program instead of the shell. If this is used it .B must be the last option debian/patches/series0000644000000000000000000000021612220472203012023 0ustar 12-output-version.patch 13-term-name.patch 20-st.info.patch 30-config.def.h.patch 35-man-debian.patch 36-man-t-option.patch 40-t-option.patch debian/patches/20-st.info.patch0000644000000000000000000000262612220472203013435 0ustar From 6595a58898f96ac09efe9001f24a1c87097fc0c8 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Tue, 20 Sep 2011 12:51:52 +0300 Subject: [PATCH] st.info: rename from st to stterm Organization: Private Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Jari Aalto --- st.info | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) --- a/st.info +++ b/st.info @@ -1,4 +1,4 @@ -st| simpleterm, +stterm| Suckless Tools simple terminal, acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, am, bce, @@ -185,24 +185,24 @@ vpa=\E[%i%p1%dd, -st-256color| simpleterm with 256 colors, - use=st, +stterm-256color| Suckless Tools simple terminal with 256 colors, + use=stterm, colors#256, pairs#32767, # Nicked from xterm-256color setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m, setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m, -st-meta| simpleterm with meta key, - use=st, +stterm-meta| Suckless Tools simple terminal with meta key, + use=stterm, km, rmm=\E[?1034l, smm=\E[?1034h, rs2=\E[4l\E>\E[?1034h, is2=\E[4l\E>\E[?1034h, -st-meta-256color| simpleterm with meta key and 256 colors, - use=st-256color, +stterm-meta-256color| Suckless Tools simple terminal with meta key and 256 colors, + use=stterm-256color, km, rmm=\E[?1034l, smm=\E[?1034h, debian/patches/13-term-name.patch0000644000000000000000000000302212220472203013733 0ustar From: Jari Aalto Subject: Change st to more descriptive name stterm --- st.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) --- a/st.c +++ b/st.c @@ -2792,7 +2792,7 @@ } if(!pattern) - die("st: can't open font %s\n", fontstr); + die("stterm: can't open font %s\n", fontstr); if(fontsize > 0) { FcPatternDel(pattern, FC_PIXEL_SIZE); @@ -2816,7 +2816,7 @@ FcDefaultSubstitute(pattern); if(xloadfont(&dc.font, pattern)) - die("st: can't open font %s\n", fontstr); + die("stterm: can't open font %s\n", fontstr); /* Setting character width and height. */ xw.cw = CEIL(dc.font.width * cwscale); @@ -2825,17 +2825,17 @@ FcPatternDel(pattern, FC_SLANT); FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC); if(xloadfont(&dc.ifont, pattern)) - die("st: can't open font %s\n", fontstr); + die("stterm: can't open font %s\n", fontstr); FcPatternDel(pattern, FC_WEIGHT); FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD); if(xloadfont(&dc.ibfont, pattern)) - die("st: can't open font %s\n", fontstr); + die("stterm: can't open font %s\n", fontstr); FcPatternDel(pattern, FC_SLANT); FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ROMAN); if(xloadfont(&dc.bfont, pattern)) - die("st: can't open font %s\n", fontstr); + die("stterm: can't open font %s\n", fontstr); FcPatternDestroy(pattern); } @@ -3315,7 +3315,7 @@ void xresettitle(void) { - xsettitle(opt_title ? opt_title : "st"); + xsettitle(opt_title ? opt_title : "stterm"); } void debian/patches/40-t-option.patch0000644000000000000000000000142112220472203013620 0ustar From: Jari Aalto Subject: Change option -t to -T x-terminal emulator must provide option -T. See 11.8.3 Packages providing a terminal emulator http://www.debian.org/doc/debian-policy/ch-customized-programs.html#s11.8.3 --- st.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/st.c +++ b/st.c @@ -3725,7 +3725,7 @@ usage(void) { die("%s " VERSION " (C) 2010-2013 stterm engineers\n" \ "usage: stterm [-a] [-v] [-c class] [-f font] [-g geometry] [-o file]" \ - " [-t title] [-w windowid] [-e command ...]\n", argv0); + " [-T title] [-w windowid] [-e command ...]\n", argv0); } int @@ -3778,7 +3778,7 @@ case 'o': opt_io = EARGF(usage()); break; - case 't': + case 'T': opt_title = EARGF(usage()); break; case 'w': debian/docs0000644000000000000000000000001412220472203010026 0ustar README TODO debian/source/0000755000000000000000000000000012220472203010460 5ustar debian/source/format0000644000000000000000000000001412220472203011666 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212220472203010356 0ustar 9 debian/copyright0000644000000000000000000000504012220472203011112 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: stterm Upstream-Contact: Christoph Lohmann (irc __20h__) <20h@r-36.net> Source: http://st.suckless.org Comment: Dowload is only available from VCS tree. X-Vcs-Git: http://git.suckless.org/st X-Upstream-Bugs: deve@suckless.org X-Upstream-Irc: #suckless@irc.oftc.net X-Gmane: http://dir.gmane.org/gmane.comp.misc.suckless Files: * Copyright: 2012-2013 Christoph Lohmann <20h@r-36.net> 2012 Roberto E. Vargas Caballero 2009-2012 Aurélien Aptell 2009 Anselm R Garbe , License: MIT Files: debian/* Copyright: 2009-2013 Jari Aalto License: GPL-2+ License: MIT [From file LICENSE] . Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License can be found in "/usr/share/common-licenses/GPL-2". debian/control0000644000000000000000000000167212220472203010571 0ustar Source: stterm Section: x11 Priority: optional Maintainer: Jari Aalto Build-Depends: debhelper (>= 9), libx11-dev, libfreetype6-dev, libxext-dev, pkg-config, libxft-dev Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/stterm.git Vcs-Git: git://anonscm.debian.org/collab-maint/stterm.git Homepage: http://st.suckless.org Package: stterm Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Provides: x-terminal-emulator Description: suckless tools simple terminal for windowed system Stterm is a bare bones terminal emulator developed with a focus on simplicity and clarity as the primary goals. It is very lightweight consuming only approximately (2+25 reserved+virtual) MiB memory. The suckless software projects philosophy is about keeping things simple, minimal and usable. . Note: the original binary name "st" in this package is "stterm" for "suckless tools terminal". debian/repack.sh0000644000000000000000000001633512220472203010771 0ustar #!/bin/sh # # Copyright # # Copyright (C) 2008-2010 Jari Aalto # # License # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . set -e set -u DIR="" Initialize () { # Check depends [ -x /bin/mktemp ] || Die "[ERROR]: mktemp (pkg: coreutils) not installed." [ -x /bin/bzip2 ] || Die "[ERROR]: bzip2 (pkg: bzip2) not installed." [ -x /bin/gzip ] || Die "[ERROR]: gzip (pkg: gzip) not installed." [ -x /bin/tar ] || Die "[ERROR]: tar (pkg: tar) not installed." } InitializeZip () { [ -x /usr/bin/unzip ] || Die "[ERROR]: unzip (pkg: unzip) not installed." } InitializeRar () { [ -x /usr/bin/unrar ] || Die "[ERROR]: unrar (pkg: unrar) not installed." } Help () { echo " SYNOPSIS repack.sh [--upstream-source] [PACKAGE] DESCRIPTION Repackage upstream source. The command line arguments are according to to uscan(1) order. The PACKAGE argument is optional. Can also repack *.zip and *.rar files. OPTIONS --upstream-source Option is ignored. It is passed from uscan(1) when debian/watch file is read. EXAMPLES To manually repack original upstream source foo-1.1.tar.gz to bar-1.10.orig.tar.gz: repack.sh 1.10 foo-1.1.tar.gz bar Save this file to debian/repack.sh and add following line to debian/watch: version=3 http://example.com .*package-(.+).tar.gz debian debian/repack.sh AUTHOR Copyright (C) 2008-2010 Jari Aalto Released under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version." exit 0 } Run () { if [ "${test+test_mode}" = "test_mode" ]; then echo "$@" else [ "${verbose+verbose_mode}" = "verbose_mode" ] && echo "$@" >&2 "$@" fi } Warn () { echo "$*" >&2 } Die () { Warn "$*" exit 1 } AtExit () { if [ "$DIR" ]; then [ -d "$DIR" ] && rm -rf "$DIR" fi } DebianVersion () { # No version conversions yet echo $1 } DebianTar () { local ver=$1 local dver=$2 local file=$3 local pkg=$4 # Convert suffixes file=$(echo $file | sed -e 's,.orig,,' -e 's,\(tgz\|zip\|rar\)$,tar.gz,' ) # If version is same, use original file if [ "$ver" = "$dver" ]; then if [ "$pkg" ]; then echo $file | sed "s,.*$ver,${pkg}_$ver.orig," else echo $file fi return 0 fi if [ "$pkg" ]; then echo $file | sed -e "s,.*$ver,${pkg}_$dver.orig," else # replace with new version echo $file | sed -e "s,$ver,$dver.orig," fi } Pkg () { local file=$1 if [ -f debian/changelog ]; then dpkg-parsechangelog | awk '/^Source:/ {print $2}' else # package-1.1.tar.gz => package echo $file | sed "s,[-_][0-9].*,," fi } Version () { local file=$1 local pkg=$(Pkg $file) if [ ! "$pkg" ]; then Die "[ERROR] Internal error. 'pkg' variable not set. Run with debug (-x)" fi echo $file | sed -e "s,\.orig.*,," \ -e "s,\.tar.*,," \ -e "s,\.tgz,," \ -e "s,\.tbz,," \ -e "s,\.tbz2,," \ -e "s,\.zip,," \ -e "s,\.7z,," \ -e "s,\.rar,," \ -e "s,\.lzma,," \ -e "s,\.xz,," \ -e "s,$pkg[-_],," } Cleanup () { [ "$1" ] || return 1 local dir dir=$1 find "$dir" \ \( \ -iname "*.exe" \ -o -name "*.swp" \ -o -name "DEADJOE" \ -o -name "*.[~#]" \ -o -name ".gitignore" \ -o -name ".bzrignore" \ -o -name ".svnignore" \ -o -name ".cvsignore" \ -o -path "*/debian/*" \ -o -path "*/debian" \ -o -path "*/CVS*" \ -o -path "*/.svn*" \ -o -path "*/.darcs*" \ -o -path "*/.bzr*" \ -o -path "*/.hg*" \ -o -path "*/.git*" \ \) \ -print0 | xargs --null --no-run-if-empty rm -rf --verbose # Remove executables find "$dir" -type f -print0 | xargs --null --no-run-if-empty file | awk -F: '$2 ~ /ELF|COFF|LSB exe/ {print $1}' | xargs --no-run-if-empty rm --verbose } Main () { if [ $# -eq 0 ]; then Help fi Initialize case "$1" in --help|-h) Help ;; --*) shift # Ignore uscan(1) argument --upstream-version in $1 ;; esac VER="$1" FILENAME="$2" DIR= if [ ! -f "$FILENAME" ]; then Die "[ERROR] Arg 2. File does not exist: $FILENAME" fi FILE_DIR=$(dirname $FILENAME) FILE=$(basename $FILENAME) PKG=${3:-$(Pkg $FILE)} if [ ! "$PKG" ]; then Die "[ERROR] Internal error. PKG not set. Run with debug (-x)" fi CURVER=$(Version $FILE) if [ ! "$CURVER" ]; then Die "[ERROR] Internal error. CURVER not set. Run with debug (-x)" fi DVER=$(DebianVersion "$VER") DFILE=$(DebianTar "$CURVER" "$DVER" "$FILE" $PKG) # Debian Developer's Reference 6.7.8.2 Repackaged upstream source REPACK_DIR="$PKG-$DVER.orig" DIR=$(mktemp -d ./tmp.repack.XXXXXX) if [ ! "$DIR" ]; then Die "[INTERNAL ERROR] mktemp(1) failed. Debug with 'sh -x PROGRAM'" fi echo "Repacking $FILENAME as $PKG-$DVER" # Create an extra directory to cope with tarballs that # do not have root/ directory UP_BASE="$DIR/unpack" Run mkdir "$UP_BASE" curdir=$(pwd) case "$FILENAME" in *.gz | *.bz2 ) Run tar -C "$UP_BASE" -xf "$FILENAME" ;; *.zip) InitializeZip adir=$(dirname $FILENAME) name=$(basename $FILENAME) Run cd "$UP_BASE" Run unzip "$curdir/$adir/$name" || return 1 cd $curdir ;; *.rar) InitializeRar adir=$(dirname $FILENAME) name=$(basename $FILENAME) Run cd "$UP_BASE" Run unrar x "$curdir/$adir/$name" || return 1 cd $curdir ;; *) Die "Unknonw file format: $FILENAME" ;; esac if [ $(ls -1 "$UP_BASE" | wc -l) -eq 1 ]; then # Tarball does contain a root directory UP_BASE="$UP_BASE/$(ls -1 "$UP_BASE")" fi if [ ! "$UP_BASE" ]; then Die "[INTERNAL ERROR] UP_BASE not set" fi Cleanup "$UP_BASE" # Repack Run mv "$UP_BASE" "$DIR/$REPACK_DIR" # Don't use pipes. Errors are not handled well with them. Run tar -C "$DIR" -cf "$DIR/repacked.tar" "$REPACK_DIR" # The .orig file must use gzip compression tar="$DIR/repacked.tar" case "$DFILE" in *.bz2) DFILE=$(echo $DFILE | sed "s/.bz2/.gz/") ;; *.gz) ;; *.zip) DFILE=$(echo $DFILE | sed "s/.zip/.gz/") ;; *.rar) DFILE=$(echo $DFILE | sed "s/.rar/.gz/") ;; *) Die "Unknown *.suffix in $DFILE" ;; esac suffix=".gz" Run gzip --best "$tar" if [ -f "$DFILE" ]; then echo "Warning, overwriting $DFILE" fi Run mv "$tar$suffix" "$DFILE" echo "Done $DFILE" } trap AtExit QUIT INT EXIT Main "$@" # End of file