This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [not GTG] Re: ITP: bogofilter -- Statistical Bayesian spam filter


ericblake-Wuw85uim5zDR7s880joybQ@public.gmane.org (Eric Blake) writes:

| >    If /etc/xxx.conf is already there, there is no way knowing if this
| >    has remained the same or if user has made changes to it. The new
| 
| This really ought to be documented better on the packaging instructions
| page.  The trick is to use a preremove script (see how base-files does
| it, for example).  A file named /etc/preremove/bogofilter.sh will be
| called just before the package is uninstalled (setup.exe uninstalls
| the old version before installing the upgraded version), so in that
| script, if /etc/xxx.conf exists and is identical to /usr/share/doc/xxx.template,
| just delete it.  But if it differs at all, leave it alone.
| 
| Also, it is a good idea to have a file /etc/preremove/bogofilter-manifest.lst,
| which lists every file that was created by the postinstall script, and which
| will be removed on preremove if untouched by the user.  Someday,
| 'cygcheck -c' might parse the manifest lists to help diagnose if
| postinstalls have not completed.

That works, thanks. I added preremove and made new packages.
 
| > 
| > I've rolled up new archive.
| 
| I'll let you get the preremove script in first, before checking out the
| new package.  Thanks for putting up with my nit-picking :)

Not at all, four eyes see more than one pair.

Jari

A) use this

  wget --non-verbose        \
    http://cygwin.cante.net/bogofilter/setup.hint \
    http://cygwin.cante.net/bogofilter/bogofilter-0.96.1-1.tar.bz2.sig \
    http://cygwin.cante.net/bogofilter/bogofilter-0.96.1-1.tar.bz2 \
    http://cygwin.cante.net/bogofilter/bogofilter-0.96.1-1-src.tar.bz2.sig \
    http://cygwin.cante.net/bogofilter/bogofilter-0.96.1-1-src.tar.bz2

B) or this (get.sh will print further instructions)

  gpg --keyserver wwwkeys.pgp.net --recv-keys 955A92D8

  mkdir bogofilter ; cd bogofilter
  rm -f get.sh get.sh.sig
  wget -q http://cygwin.cante.net/bogofilter/get.sh \
          http://cygwin.cante.net/bogofilter/get.sh.sig
  gpg --verify get.sh.sig get.sh &&
  sh get.sh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]