~ubuntu-branches/ubuntu/karmic/sysnews/karmic

« back to all changes in this revision

Viewing changes to news.h

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Niebur
  • Date: 2009-02-24 17:08:35 UTC
  • Revision ID: james.westby@ubuntu.com-20090224170835-bzjqiice1vvu92i3
Tags: 0.9-16
* New maintainer (Closes: #483250)
  - Change Vcs-* headers
* use quilt
* switch to dh7
* split up patches
  - upstream's Makefile already regenerates the man page with the
    NEWSDIR set correctly, so just use the regenerated version
    rather than patching
  - stop patching the Makefile when the changes can happen in
    debian/rules
  - organize the remaining changes
* fix permissions on executable
* stop supporting upgrades from potato :p
* upgrade to latest policy (3.8.0)
  - add README.source
* leave the debian/dirs, as it is actually needed
* redo copyright file to be more clear
* remove unneeded build dependency on dpkg-dev
* add lintian override for non-standard-dir-perm
* remove the default WELCOME. There was no easy way to make it comply
  with Debian Policy, and imho it's kinda useless, since most people
  probably remove/change it anyway.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 * $Date: 1995/07/06 08:40:45 $
11
11
 */
12
12
 
13
 
#define VERSION         "0.9"
14
 
 
15
 
#ifndef NEWSDIR
16
 
  #define NEWSDIR      "/var/lib/sysnews"
17
 
#endif
18
 
#ifndef NEWSTIME
19
 
  #define NEWSTIME     ".news_time"
20
 
#endif
21
 
#ifndef DEF_PAGER
22
 
  #define DEF_PAGER       "pager"
23
 
#endif
 
13
#define DEF_PAGER       "more"
24
14
#define NOEXPFILE       ".noexpire"
25
15
#define DATEFORMAT      "(%b %d %Y)"
26
16
#define ERRMSG          strerror(errno)
32
22
 
33
23
 
34
24
struct {
35
 
  int    all;
36
 
  int    items;
37
 
  int    names;
38
 
  int    page;
39
 
  int    oneperline;
40
 
  int    datestamp;
41
 
  int    verbose;
 
25
  int    all:1;
 
26
  int    items:1;
 
27
  int    names:1;
 
28
  int    page:1;
 
29
  int    oneperline:1;
 
30
  int    datestamp:1;
 
31
  int    verbose:1;
42
32
  int    expire;
43
33
  char   *pager;
44
34
  } f;
53
43
 
54
44
 
55
45
/* news.c */
56
 
int main __PROTO((int argc , char **argv ));
 
46
void main __PROTO((int argc , char **argv ));
57
47
int implode __PROTO((char *str , char *av [], int max ));
58
48
void parse_args __PROTO((int argc , char **argv ));
59
49
void read_sysnews __PROTO((int argc , char **argv ));