--- tart-3.09.orig/README +++ tart-3.09/README @@ -27,31 +27,31 @@ Notes: LinuxTaRT has undergone many significant changes since v1.00 - it now no -longer assumes that the file .TaRTrc is located in the same directory as TaRT -itself. It now looks for .TaRTrc in the directory pointed to by the $HOME +longer assumes that the file .tartrc is located in the same directory as TaRT +itself. It now looks for .tartrc in the directory pointed to by the $HOME environment variable (i.e. the current user's home directory). LinuxTaRT 2.00 also provides the ability to use completely customizable signature layout via a definition file (explained below...) LinuxTaRT 2.20 provides special date functionality (explained below...) -Another note for users of 1.05 or earlier, is that your current .TaRTrc file +Another note for users of 1.05 or earlier, is that your current .tartrc file will no longer work as it is, To fix this, simply add the text CustomText1= CustomText2=, SignatureFile=, and TagLineDatabase= to the beginning of the respective lines in the file (alternatively, you can run the new interactive setup util, TaRT -s). -I changed the .TaRTrc file to this structure because I wanted to implement a +I changed the .tartrc file to this structure because I wanted to implement a more reliable way of dealing with the settings. These modifications also allow the entries to occur in any order, and make it easier to implement a built-in setup util (again, see below). -The .TaRTrc file allows the use of comments by inserting a pound or +The .tartrc file allows the use of comments by inserting a pound or "hash" sign # in front of any text that you want to be a comment. LinuxTaRT has fairly self-explanitory help accessable by using the --help or -h command-line arguments. -Since TaRT checks for .TaRTrc in the users home directory, TaRT can be +Since TaRT checks for .tartrc in the users home directory, TaRT can be placed in a user accessible folder like /usr/bin or /usr/local/bin. Then an entry can be added to your .login file or crontab to frequently create a new signature. @@ -144,7 +144,7 @@ TaRT also understands several signals. If SIGALRM is received, TaRT will update your signature immediately. -If SIGHUP is received, TaRT will re-read your .TaRTrc file. +If SIGHUP is received, TaRT will re-read your .tartrc file. If SIGTERM or SIGQUIT are received, TaRT will exit normally (this is what -k and --kill do) @@ -152,9 +152,9 @@ immediately. From version 3.00 onward, preferences such as centering, and special dates can -be saved in your .TaRTrc file. +be saved in your .tartrc file. -Run TaRT -s, selecting the defaults for all options, then examine your .TaRTrc +Run TaRT -s, selecting the defaults for all options, then examine your .tartrc file to see the new settings. All of them are boolean values (0 or 1) except for "RunAsDaemon" and "Running". --- tart-3.09.orig/src/Makefile.in +++ tart-3.09/src/Makefile.in @@ -10,7 +10,7 @@ all: tart-target tart-target: $(OBJS) - $(CC) $(CFLAGS) -o tart $(OBJS) + $(CC) $(CFLAGS) $(LDFLAGS) -o tart $(OBJS) install: install -s -D tart $(bindir)/tart --- tart-3.09.orig/src/tartutil.c +++ tart-3.09/src/tartutil.c @@ -172,9 +172,9 @@ /* function: ReadINIFile * usage: i = ReadINIFile(custom1, custom2, customfile, sigfile, tagfile, config); * ------------------------- - * This function reads the file .TaRTrc and stores initialization + * This function reads the file .tartrc and stores initialization * settings in the provided variables. - * .TaRTrc is assumed to be in the users home directory. + * .tartrc is assumed to be in the users home directory. * custom1 and custom2 are strings of length TAGLEN (maximum). * customfile, sigfile and tagfile are strings of length 256 (maximum). * config is a pointer to char malloc'd by sscanf @@ -237,7 +237,7 @@ /* function: Running * usage: i = Running(config); * --------------------- - * This function returns TaRT's PID if "Running" is set in the users .TaRTrc + * This function returns TaRT's PID if "Running" is set in the users .tartrc * file, and 0 otherwise. Use to determine whether TaRT is already running * or not. * config is a pointer to char malloc'd by sscanf @@ -253,7 +253,7 @@ strncpy (PathToINI, "Choices:TaRT.rc", 90); #else strncpy (PathToINI, getenv ("HOME"), 90); /* find user's homedir */ - strncat (PathToINI, "/.TaRTrc", 165); + strncat (PathToINI, "/.tartrc", 165); #endif } else { @@ -275,7 +275,7 @@ /* function: SetRunning * usage: i = SetRunning(state, config); * ------------------------ - * This function places an entry in the users .TaRTrc file and sets the value + * This function places an entry in the users .tartrc file and sets the value * to 'state'. This is used to determine whether TaRT is running or not. * Returns -1 on error, 0 on success; * config is a pointer to char malloc'd by sscanf @@ -291,7 +291,7 @@ strncpy (PathToINI, "Choices$Write:TaRT.rc", 90); #else strncpy (PathToINI, getenv ("HOME"), 90); /* find user's homedir */ - strncat (PathToINI, "/.TaRTrc", 165); + strncat (PathToINI, "/.tartrc", 165); #endif } else { @@ -315,8 +315,8 @@ /* function: WriteINIFile * usage: i = WriteINIFile(custom1, custom2, customfile, sigfile, tagfile, config); * ------------------------- - * This function writes the file .TaRTrc from the provided variables. - * .TaRTrc is assumed to be in the users home directory. + * This function writes the file .tartrc from the provided variables. + * .tartrc is assumed to be in the users home directory. * custom1 and custom2 are strings of length TAGLEN (maximum). * customfile, sigfile and tagfile are strings of length 256 (maximum). * config is a pointer to char malloc'd by sscanf @@ -343,7 +343,7 @@ strncpy (PathToINI, "Choices$Write:TaRT.rc", 90); #else strncpy (PathToINI, getenv ("HOME"), 90); /* find user's homedir */ - strncat (PathToINI, "/.TaRTrc", 165); + strncat (PathToINI, "/.tartrc", 165); #endif } else { @@ -425,7 +425,7 @@ /* function: FirstINIFile * usage: i = FirstINIFile(custom1, custom2, customfile, sigfile, tagfile, datefile, optarray); * ------------------------- - * This file creates a .TaRTrc file if one is not found when TaRT is ran. + * This file creates a .tartrc file if one is not found when TaRT is ran. */ int FirstINIFile (char custom1[], char custom2[], char customfile[], char sigfile[], char tagfile[], char datefile[], int optarray[] @@ -449,7 +449,7 @@ strncpy(PathToINI, ".TaRT.rc",90); #else strncpy (PathToINI, getenv ("HOME"), 90); /* find user's homedir */ - strcat (PathToINI, "/.TaRTrc"); + strcat (PathToINI, "/.tartrc"); #endif IniFile = fopen(PathToINI, "w"); --- tart-3.09.orig/src/main.c +++ tart-3.09/src/main.c @@ -100,7 +100,7 @@ if (IsSwitch (argv, argc, "--setup") != -1 || IsSwitch (argv, argc, "-s") != -1) TaRTSetup (custom1, custom2, customfile, sigfile, tagfile, datefile); if (ReadINIFile (custom1, custom2, customfile, sigfile, tagfile, datefile, optarray, NULL) == 1) { - fprintf (stderr, "error reading .TaRTrc (First time running TaRT? Try `TaRT --setup')\n"); + fprintf (stderr, "error reading .tartrc (First time running TaRT? Try `TaRT --setup')\n"); exit (1); } if ((i = IsSwitch (argv, argc, "--config")) != -1) @@ -110,7 +110,7 @@ fprintf(stderr, "invalid filename passed to --config\nexecuting with default config file\n"); } if (ReadINIFile (custom1, custom2, customfile, sigfile, tagfile, datefile, optarray, custconfig) == 1) { - fprintf (stderr, "error reading .TaRTrc (First time running TaRT? Try `TaRT --setup')\n"); + fprintf (stderr, "error reading .tartrc (First time running TaRT? Try `TaRT --setup')\n"); exit (1); } } @@ -125,7 +125,7 @@ { i = Running(custconfig); if (i > 0) - printf("TaRT is runnning with PID %d and an interval of %d seconds\n", i, optarray[asdaemon]); + printf("TaRT is running with PID %d and an interval of %d seconds\n", i, optarray[asdaemon]); else printf("TaRT is not running\n"); exit(0); @@ -250,7 +250,7 @@ if ((i = fork())) { - if (SetRunning(i,custconfig) == -1) // store the PID in ~/.TaRTrc + if (SetRunning(i,custconfig) == -1) // store the PID in ~/.tartrc _exit(1); else _exit(0); @@ -300,7 +300,7 @@ printf (" -k, --kill\tterminate your currently running TaRT process\n"); printf (" -p, --proc\tdisplay current status and PID if applicable\n"); printf (" -s, --setup\trun the internal setup program\n"); - printf (" -l, --license\tdisplay the GNU Public License notice\n"); + printf (" -l, --license\tdisplay the GNU General Public License notice\n"); printf (" --daemon [s]\trun in daemon mode, wait [s] seconds between updates\n"); printf (" --config [filename]\tuse the config file specified in [filename]\n"); printf (" --template [filename]\tuse the custom file specified in [filename]\n"); @@ -566,7 +566,7 @@ * usage: TaRTSetup(); * --------------- * This procedure prompts the user for different settings and - * creates a new .TaRTrc file in the users home directory. + * creates a new .tartrc file in the users home directory. * Terminates program execution. */ @@ -663,14 +663,14 @@ // strncpy (tmp, "Choices:TaRT.rc", 90); //#else // strncpy (tmp, getenv ("HOME"), 90); /* find user's homedir */ -// strcat (tmp, "/.TaRTrc"); +// strcat (tmp, "/.tartrc"); //#endif // printf("before fopen line\n"); // fclose(fopen(tmp, "w")); // printf("after fopen line\n"); if (FirstINIFile (custom1, custom2, customfile, sigfile, tagfile, datefile, optarray)) { - fprintf (stderr, "error creating .TaRTrc\n"); + fprintf (stderr, "error creating .tartrc\n"); exit (1); } --- tart-3.09.orig/doc/Makefile.in +++ tart-3.09/doc/Makefile.in @@ -19,12 +19,12 @@ install: all for manfile in $(man1files); do\ - ($(INSTALL) -m 0644 -d $(MAN1DIR)) || exit 1;\ - ($(INSTALL) -m 0644 $$manfile.$(man1).gz $(MAN1DIR)) || exit 1;\ + ($(INSTALL) -m 0755 -d $(MAN1DIR)) || exit 1;\ + ($(INSTALL) -m 0744 $$manfile.$(man1).gz $(MAN1DIR)) || exit 1;\ done for manfile in $(man5files); do\ - ($(INSTALL) -m 0644 -d $(MAN5DIR)) || exit 1;\ - ($(INSTALL) -m 0644 $$manfile.$(man5).gz $(MAN5DIR)) || exit 1;\ + ($(INSTALL) -m 0755 -d $(MAN5DIR)) || exit 1;\ + ($(INSTALL) -m 0744 $$manfile.$(man5).gz $(MAN5DIR)) || exit 1;\ done uninstall: --- tart-3.09.orig/debian/rules +++ tart-3.09/debian/rules @@ -0,0 +1,104 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +CFLAGS += -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +config.status: configure + dh_testdir + +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif + +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + + # Add here commands to configure the package. + CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + +build: build-arch build-indep +build-arch: build-stamp +build-indep: build-stamp + +build-stamp: config.status + dh_testdir + + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + +ifeq (Makefile,$(wildcard Makefile)) + $(MAKE) distclean +endif + +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + rm -f config.sub +endif + +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + rm -f config.guess +endif + + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install prefix=$(CURDIR)/debian/tart/usr + install -d $(CURDIR)/debian/tart/etc + mv $(CURDIR)/debian/tart/usr/share/tart.tags $(CURDIR)/debian/tart/etc/tart.tags + + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- tart-3.09.orig/debian/compat +++ tart-3.09/debian/compat @@ -0,0 +1 @@ +5 --- tart-3.09.orig/debian/control +++ tart-3.09/debian/control @@ -0,0 +1,18 @@ +Source: tart +Section: mail +Priority: optional +Homepage: http://sourceforge.net/projects/linuxtart/ +Maintainer: Colin Tuckley +Build-Depends: debhelper (>= 5.0.0), autotools-dev, dpkg-dev (>= 1.16.1~) +Standards-Version: 3.9.4 + +Package: tart +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: versatile and feature-rich email signature generator + TaRT (The Automatic Random Tagline) features include random taglines, + optional daemon functionality, display of current date, + custom layout of signature, and "special date" tagline text. + The command line syntax is simple and well explained. + TaRT is designed to be run as a stand-alone daemon, from crontab, + or in your login script. --- tart-3.09.orig/debian/dirs +++ tart-3.09/debian/dirs @@ -0,0 +1 @@ +usr/bin --- tart-3.09.orig/debian/changelog +++ tart-3.09/debian/changelog @@ -0,0 +1,55 @@ +tart (3.09-2) unstable; urgency=low + + * Bump Standards-Version to 3.9.4 (No changes required). + * Add build-arch & build-indep to debian/rules + * Add dpkg buildflags to debian/rules + + -- Colin Tuckley Sun, 12 May 2013 16:22:14 +0100 + +tart (3.09-1) unstable; urgency=low + + * New Upstream Version. + * Bump Standards-Version (No changes required). + + -- Colin Tuckley Tue, 01 Jun 2010 15:32:01 +0100 + +tart (3.07-5) unstable; urgency=low + + * Bump Standards-Version (No changes required). + * Update Homepage field and similar refs as upstream + has moved to SourceForge. + * Added watch file. + + -- Colin Tuckley Sat, 02 Jan 2010 11:55:13 +0000 + +tart (3.07-4) unstable; urgency=low + + * Update upstream web address. + * Update maintainer Email address. + * Bump Standards-Version (No changes required). + * Add Homepage field to debian/control. + + -- Colin Tuckley Fri, 22 Feb 2008 11:59:23 +0000 + +tart (3.07-3) unstable; urgency=low + + * prevent final binary from being stripped by removing -s option + from install in src/Makefile.in Closes: #438096 + + -- Colin Tuckley Wed, 15 Aug 2007 14:07:49 +0100 + +tart (3.07-2) unstable; urgency=low + + * added missing endif in debian/rules + * bump Standards-Version to 3.7.2 (No changes required) + * remove unused include for sys.h in main.c Closes: #427600 + + -- Colin Tuckley Tue, 05 Jun 2007 13:15:36 +0100 + +tart (3.07-1) unstable; urgency=low + + * Regularised the case of various filenames + * Initial release Closes: #313569 + + -- Colin Tuckley Thu, 16 Jun 2005 11:02:32 +0100 + --- tart-3.09.orig/debian/docs +++ tart-3.09/debian/docs @@ -0,0 +1,2 @@ +README +README.setup --- tart-3.09.orig/debian/watch +++ tart-3.09/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/linuxtart/ LinuxTaRT-([0-9.]*)\.tar\.gz --- tart-3.09.orig/debian/copyright +++ tart-3.09/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Colin Tuckley on +Thu, 16 Jun 2005 11:02:32 +0100. + +It was downloaded from http://sourceforge.net/projects/linuxtart/ + +Copyright Holder: Mark Veinot vmark@nbnet.nb.ca (c) 2002-2005 + +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 with +the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL; +if not, write to the Free Software Foundation, Inc., 51 Franklin St, +Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General Public +License, version 2, can be found in /usr/share/common-licenses/GPL-2. + --- tart-3.09.orig/debian/source/format +++ tart-3.09/debian/source/format @@ -0,0 +1 @@ +1.0