Commit 3ad6061d authored by Randolph Chung's avatar Randolph Chung

man pages, debian packaging scripts

parent bb1347e5
PROGRAM = tasksel
VERSION=\"0.1\"
CC = gcc
CFLAGS = -g -Wall
CFLAGS = -g -Os -Wall
DEFS = -DVERSION=$(VERSION) -DPACKAGE=\"$(PROGRAM)\" -DLOCALEDIR=\"/usr/share/locale\" #-DDEBUG
LIBS = -lslang #-lccmalloc -ldl
OBJS = tasksel.o slangui.o data.o util.o strutl.o
......@@ -20,6 +20,12 @@ po/build_stamp:
$(PROGRAM): $(OBJS) po/build_stamp
$(LINK) $(PROGRAM) $(OBJS) $(LIBS)
install:
mkdir -p $(DESTDIR)/usr/bin
install tasksel $(DESTDIR)/usr/bin
mkdir -p $(DESTDIR)/usr/share/man/man8
pod2man --center "Debian specific manpage" tasksel.pod | gzip -9c > $(DESTDIR)/usr/share/man/man8/tasksel.8.gz
test:
$(MAKE) -C scratch
......
$Id: TODO,v 1.3 1999/11/23 05:39:27 tausq Exp $
$Id: TODO,v 1.4 1999/12/29 16:10:01 tausq Exp $
- fix screen resize code (in dialogs, it doesn't work right)
- add scroll support to the dialogs
- figure out how to fix get the help text i18n'ized
- figure out how to properly install the i18n stuff
/* $Id: data.c,v 1.3 1999/12/13 03:01:33 tausq Exp $ */
/* $Id: data.c,v 1.4 1999/12/29 16:10:01 tausq Exp $ */
/* data.c - encapsulates functions for reading a package listing like dpkg's available file
* Internally, packages are stored in a binary tree format to faciliate search operations
*/
......@@ -44,7 +44,7 @@ static void packages_walk_enumerate(const void *nodep, const VISIT order, const
{
/* adds nodep to list of nodes if we haven't visited this node before */
struct package_t *datap = *(struct package_t **)nodep;
if (order == leaf || order == endorder) {
if (order == leaf || order == postorder) {
_packages_enumcount++;
_packages_enumbuf[_packages_enumcount - 1] = datap;
}
......@@ -77,7 +77,7 @@ static void packages_walk_delete(const void *nodep, const VISIT order, const int
}
}
int splitlinkdesc(const char *desc, char ***array)
static int splitlinkdesc(const char *desc, char ***array)
{
/* given a comma separate list of names, returns an array with the names split into elts of the array */
char *p;
......@@ -235,7 +235,7 @@ void packages_readlist(struct packages_t *taskpkgs, struct packages_t *pkgs)
if (longdesc != NULL) FREE(longdesc);
}
};
fclose(f);
fclose(f);
}
void packages_free(struct packages_t *taskpkgs, struct packages_t *pkgs)
......
tasksel (1.0-2) unstable; urgency=low
* Alpha sorts package names (closes: #52960)
* Make color scheme more consistent with dbootstrap (closes: #52898)
-- Randolph Chung <tausq@debian.org> Wed, 29 Dec 1999 09:32:52 -0700
tasksel (1.0-1) unstable; urgency=low
* Initial Release.
-- Randolph Chung <tausq@debian.org> Wed, 8 Dec 1999 21:49:42 -0700
Local variables:
mode: debian-changelog
End:
Source: tasksel
Section: base
Priority: optional
Maintainer: Randolph Chung <tausq@debian.org>
Standards-Version: 3.0.1.1
Package: tasksel
Architecture: any
Depends: ${shlibs:Depends}
Description: New task packages selector
Interface for selecting task packages; used for boot-floppies, but can also
be called independently
This package was debianized by Randolph Chung <tausq@debian.org> on
Wed, 8 Dec 1999 21:41:46 -0700.
Upstream Author: Randolph Chung
Copyright: GPLv2, see /usr/share/common-licenses/GPL
usr/bin
usr/sbin
README
TODO
tasksel_1.0-2_i386.deb base optional
?package(tasksel):needs="text" section="Apps/System"\
title="Task selector"\
command="/usr/bin/tasksel"
#!/usr/bin/make -f
#-*- makefile -*-
# Made with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Christoph Lameter.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatability version to use.
export DH_COMPAT=1
build: build-stamp
build-stamp:
dh_testdir
# Add here commands to compile the package.
$(MAKE)
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp install-stamp
# Add here commands to clean up after the build process.
-$(MAKE) clean
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/tmp.
$(MAKE) install DESTDIR=`pwd`/debian/tmp
touch install-stamp
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installmenu
dh_installmanpages
dh_installchangelogs ChangeLog TODO
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
/* $Id: slangui.c,v 1.6 1999/12/13 03:01:33 tausq Exp $ */
/* $Id: slangui.c,v 1.7 1999/12/29 16:10:01 tausq Exp $ */
/* slangui.c - SLang user interface routines */
/* TODO: the redraw code is a bit broken, also this module is using way too many
* global vars */
......@@ -22,6 +22,7 @@
#define DIALOGOBJ 4
#define POINTEROBJ 5
#define BUTTONOBJ 6
#define SHADOWOBJ 7
#define CHOOSERWINDOW 0
#define DESCWINDOW 1
......@@ -74,13 +75,14 @@ void ui_init(int argc, char * const argv[], struct packages_t *taskpkgs, struct
SLang_set_abort_signal(NULL);
/* assign attributes to objects */
SLtt_set_color(DEFAULTOBJ, NULL, "white", "black");
SLtt_set_color(CHOOSEROBJ, NULL, "black", "cyan");
SLtt_set_color(POINTEROBJ, NULL, "brightblue", "cyan");
SLtt_set_color(DEFAULTOBJ, NULL, "white", "blue");
SLtt_set_color(CHOOSEROBJ, NULL, "black", "lightgray");
SLtt_set_color(POINTEROBJ, NULL, "brightblue", "lightgray");
SLtt_set_color(DESCOBJ, NULL, "black", "cyan");
SLtt_set_color(STATUSOBJ, NULL, "yellow", "blue");
SLtt_set_color(DIALOGOBJ, NULL, "black", "lightgray");
SLtt_set_color(BUTTONOBJ, NULL, "white", "red");
SLtt_set_color(SHADOWOBJ, NULL, "black", "black");
ui_resize();
_initialized = 1;
......@@ -206,11 +208,18 @@ int ui_eventloop(void)
return ret;
}
int ui_drawbox(int obj, int r, int c, unsigned int dr, unsigned int dc)
int ui_drawbox(int obj, int r, int c, unsigned int dr, unsigned int dc,
int shadow)
{
if (shadow) {
SLsmg_set_color(SHADOWOBJ);
SLsmg_fill_region(r+dr, c+1, 1, dc, ' ');
SLsmg_fill_region(r+1, c+dc, dr, 1, ' ');
}
SLsmg_set_color(obj);
SLsmg_draw_box(r, c, dr, dc);
SLsmg_fill_region(r+1, c+1, dr-2, dc-2, ' ');
return 0;
}
......@@ -222,7 +231,7 @@ int ui_drawscreen(void)
SLsmg_set_color(DEFAULTOBJ);
write_centered_str(1, 0, COLUMNS,
_("Select the task package(s) appropriate for your system:"));
ui_drawbox(CHOOSEROBJ, _chooserinfo.rowoffset - 1, _chooserinfo.coloffset - 1, _chooserinfo.height + 2, _chooserinfo.width + 2);
ui_drawbox(CHOOSEROBJ, _chooserinfo.rowoffset - 1, _chooserinfo.coloffset - 1, _chooserinfo.height + 2, _chooserinfo.width + 2, 1);
for (i = _chooserinfo.topindex; i < _chooserinfo.topindex + _chooserinfo.height; i++)
if (i < _taskpackages->count) ui_drawchooseritem(i);
......@@ -255,7 +264,7 @@ void ui_dialog(int row, int col, int height, int width, char *title, char *msg,
SLsmg_set_color(DIALOGOBJ);
ui_drawbox(DIALOGOBJ, row, col, height, width);
ui_drawbox(DIALOGOBJ, row, col, height, width, 1);
SLsmg_fill_region(row+1, col+1, height-2, width-2, ' ');
if (title) {
......
......@@ -10,7 +10,7 @@ int ui_running(void);
void ui_resize(void);
int ui_eventloop(void);
int ui_drawbox(int obj, int x, int y, unsigned int dx, unsigned int dy);
int ui_drawbox(int obj, int x, int y, unsigned int dx, unsigned int dy, int shadow);
void ui_button(int row, int col, char *txt);
void ui_dialog(int row, int col, int height, int width, char *title, char *msg, int reflow);
......
.rn '' }`
''' $RCSfile: tasksel.man,v $$Revision: 1.1 $$Date: 1999/12/29 16:10:01 $
'''
''' $Log: tasksel.man,v $
''' Revision 1.1 1999/12/29 16:10:01 tausq
''' man pages, debian packaging scripts
'''
'''
.de Sh
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp
.if t .sp .5v
.if n .sp
..
.de Ip
.br
.ie \\n(.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
..
.de Vb
.ft CW
.nf
.ne \\$1
..
.de Ve
.ft R
.fi
..
'''
'''
''' Set up \*(-- to give an unbreakable dash;
''' string Tr holds user defined translation string.
''' Bell System Logo is used as a dummy character.
'''
.tr \(*W-|\(bv\*(Tr
.ie n \{\
.ds -- \(*W-
.ds PI pi
.if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
.if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
.ds L" ""
.ds R" ""
''' \*(M", \*(S", \*(N" and \*(T" are the equivalent of
''' \*(L" and \*(R", except that they are used on ".xx" lines,
''' such as .IP and .SH, which do another additional levels of
''' double-quote interpretation
.ds M" """
.ds S" """
.ds N" """""
.ds T" """""
.ds L' '
.ds R' '
.ds M' '
.ds S' '
.ds N' '
.ds T' '
'br\}
.el\{\
.ds -- \(em\|
.tr \*(Tr
.ds L" ``
.ds R" ''
.ds M" ``
.ds S" ''
.ds N" ``
.ds T" ''
.ds L' `
.ds R' '
.ds M' `
.ds S' '
.ds N' `
.ds T' '
.ds PI \(*p
'br\}
.\" If the F register is turned on, we'll generate
.\" index entries out stderr for the following things:
.\" TH Title
.\" SH Header
.\" Sh Subsection
.\" Ip Item
.\" X<> Xref (embedded
.\" Of course, you have to process the output yourself
.\" in some meaninful fashion.
.if \nF \{
.de IX
.tm Index:\\$1\t\\n%\t"\\$2"
..
.nr % 0
.rr F
.\}
.TH TASKSEL 1 "perl 5.005, patch 03" "15/Dec/1999" "User Contributed Perl Documentation"
.UC
.if n .hy 0
.if n .na
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.de CQ \" put $1 in typewriter font
.ft CW
'if n "\c
'if t \\&\\$1\c
'if n \\&\\$1\c
'if n \&"
\\&\\$2 \\$3 \\$4 \\$5 \\$6 \\$7
'.ft R
..
.\" @(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2
. \" AM - accent mark definitions
.bd B 3
. \" fudge factors for nroff and troff
.if n \{\
. ds #H 0
. ds #V .8m
. ds #F .3m
. ds #[ \f1
. ds #] \fP
.\}
.if t \{\
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
. ds #V .6m
. ds #F 0
. ds #[ \&
. ds #] \&
.\}
. \" simple accents for nroff and troff
.if n \{\
. ds ' \&
. ds ` \&
. ds ^ \&
. ds , \&
. ds ~ ~
. ds ? ?
. ds ! !
. ds /
. ds q
.\}
.if t \{\
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
. ds ? \s-2c\h'-\w'c'u*7/10'\u\h'\*(#H'\zi\d\s+2\h'\w'c'u*8/10'
. ds ! \s-2\(or\s+2\h'-\w'\(or'u'\v'-.8m'.\v'.8m'
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
. ds q o\h'-\w'o'u*8/10'\s-4\v'.4m'\z\(*i\v'-.4m'\s+4\h'\w'o'u*8/10'
.\}
. \" troff and (daisy-wheel) nroff accents
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
.ds v \\k:\h'-(\\n(.wu*9/10-\*(#H)'\v'-\*(#V'\*(#[\s-4v\s0\v'\*(#V'\h'|\\n:u'\*(#]
.ds _ \\k:\h'-(\\n(.wu*9/10-\*(#H+(\*(#F*2/3))'\v'-.4m'\z\(hy\v'.4m'\h'|\\n:u'
.ds . \\k:\h'-(\\n(.wu*8/10)'\v'\*(#V*4/10'\z.\v'-\*(#V*4/10'\h'|\\n:u'
.ds 3 \*(#[\v'.2m'\s-2\&3\s0\v'-.2m'\*(#]
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
.ds ae a\h'-(\w'a'u*4/10)'e
.ds Ae A\h'-(\w'A'u*4/10)'E
.ds oe o\h'-(\w'o'u*4/10)'e
.ds Oe O\h'-(\w'O'u*4/10)'E
. \" corrections for vroff
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
. \" for low resolution devices (crt and lpr)
.if \n(.H>23 .if \n(.V>19 \
\{\
. ds : e
. ds 8 ss
. ds v \h'-1'\o'\(aa\(ga'
. ds _ \h'-1'^
. ds . \h'-1'.
. ds 3 3
. ds o a
. ds d- d\h'-1'\(ga
. ds D- D\h'-1'\(hy
. ds th \o'bp'
. ds Th \o'LP'
. ds ae ae
. ds Ae AE
. ds oe oe
. ds Oe OE
.\}
.rm #[ #] #H #V #F C
.SH "NAME"
tasksel \- a user interface for installing task packages
.SH "SYNOPSIS"
tasksel
.SH "DESCRIPTION"
tasksel shows all available task packages and allows to user to select
ones to install
.SH "SEE ALSO"
\fIdpkg\fR\|(8), apt-\fIget\fR\|(8)
.SH "FILES"
\fI/var/lib/dpkg/available\fR
.SH "AUTHOR"
tasksel was written by Randolph Chung <tausq@debian.org>.
.SH "HISTORY"
This document first appeared with tasksel-1.0
.rn }` ''
.IX Title "TASKSEL 1"
.IX Name "tasksel - a user interface for installing task packages"
.IX Header "NAME"
.IX Header "SYNOPSIS"
.IX Header "DESCRIPTION"
.IX Header "SEE ALSO"
.IX Header "FILES"
.IX Header "AUTHOR"
.IX Header "HISTORY"
=head1 NAME
tasksel - a user interface for installing task packages
=head1 SYNOPSIS
tasksel
=head1 DESCRIPTION
tasksel shows all available task packages and allows to user to select
ones to install
=head1 SEE ALSO
dpkg(8), apt-get(8)
=head1 FILES
F</var/lib/dpkg/available>
=head1 AUTHOR
tasksel was written by Randolph Chung E<lt>tausq@debian.orgE<gt>.
=head1 HISTORY
This document first appeared with tasksel-1.0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment