Hi,

I've found very spotty documentation on packages, mostly here:

https://wiki.ubuntu.com/PackagingGuide/HandsOn

The problem with these tutorals - and there are several - is that they
don't take into account the differences in what you're trying to
package.

I'm trying to create a "polipo-tor" package which depends on both polipo
and tor being installed already.  All it does is install some config files
and set up /var/run/polipo-tor and /var/log/polipo-tor.

I'm trying to package it as an architecture-independent package.

Here is the contents via lesspipe:

 new debian package, version 2.0.
 size 9714 bytes: control archive= 1552 bytes.
      96 bytes,     4 lines      conffiles
     626 bytes,    16 lines      control
     285 bytes,     4 lines      md5sums
    1371 bytes,    53 lines   *  postinst             #!/bin/sh
    1153 bytes,    45 lines   *  postrm               #!/bin/sh
     278 bytes,    11 lines   *  prerm                #!/bin/sh
 Package: polipo-tor
 Version: 1.0-0ubuntu1
 Architecture: all
 Maintainer: Ubuntu MOTU Developers <ubuntu-m...@lists.ubuntu.com>
 Installed-Size: 52
 Depends: polipo, tor, tsocks
 Section: web
 Priority: optional
 Description: Polipo web proxy configured to route through tor
  This is the polipo-tor package.
  It installs a new polipo service that listens on port 8124
  and forwards all requests through tor.
  Note that this package makes it easy to route through tor,
  but it does not try to prevent de-anonymization attacks;
  those depend on browser configuration.
 Original-Maintainer: Travis H. <travis+o-ubu...@subspacefield.org>

*** Contents:
drwxr-xr-x root/root         0 2009-05-22 13:18 ./
drwxr-xr-x root/root         0 2009-05-22 13:18 ./etc/
drwxr-xr-x root/root         0 2009-05-22 13:18 ./etc/polipo-tor/
-rw-r--r-- root/root      3912 2009-05-22 13:18 ./etc/polipo-tor/config
-rw-r--r-- root/root       450 2009-05-22 13:18 ./etc/polipo-tor/forbidden
-rw-r--r-- root/root       172 2009-05-22 13:18 ./etc/polipo-tor/options
drwxr-xr-x root/root         0 2009-05-22 13:18 ./etc/init.d/
-rwxr-xr-x root/root     11669 2009-05-22 12:54 ./etc/init.d/polipo-tor
drwxr-xr-x root/root         0 2009-05-22 13:18 ./var/
drwxr-xr-x root/root         0 2009-05-22 13:18 ./var/log/
drwxr-xr-x root/root         0 2009-05-22 13:18 ./var/log/polipo-tor/
-rw-r--r-- root/root         0 2009-05-22 13:18 ./var/log/polipo-tor/polipo.log
drwxr-xr-x root/root         0 2009-05-22 13:18 ./var/run/
drwxr-xr-x root/root         0 2009-05-22 13:18 ./var/run/polipo-tor/
drwxr-xr-x root/root         0 2009-05-22 13:18 ./usr/
drwxr-xr-x root/root         0 2009-05-22 13:18 ./usr/share/
drwxr-xr-x root/root         0 2009-05-22 13:18 ./usr/share/doc/
drwxr-xr-x root/root         0 2009-05-22 13:18 ./usr/share/doc/polipo-tor/
-rw-r--r-- root/root      2051 2009-04-30 11:12 
./usr/share/doc/polipo-tor/README.Debian
-rw-r--r-- root/root      1603 2009-04-28 19:05 
./usr/share/doc/polipo-tor/copyright
-rw-r--r-- root/root       152 2009-05-22 13:03 
./usr/share/doc/polipo-tor/changelog.Debian.gz

Now unfortunately, it isn't installing /etc/polipo-tor/config.

Or anything in that subdirectory.

ANy clues why?


Also, I've set up a local repository using the following script:

cd /ref/www/packages/ubuntu
for b in $(find dists -type d \( -name 'binary*' -o -name 'all' \))
do
        dpkg-scanpackages $b /dev/null | gzip -9c > $b/Packages.gz
done
for s in $(find dists -type d -name source)
do
        dpkg-scansources $s | gzip -9c > $s/Sources.gz
done


However, when I try to "apt-get -y install" a package, it fails because
the repo isn't signed somehow.  I've already added the key I used to create
the packages via "apt-key add" but apparently that's not enough.  What
am I missing?
-- 
Obama Nation | My emails do not have attachments; it's a digital signature
that your mail program doesn't understand. | 
http://www.subspacefield.org/~travis/ 
If you are a spammer, please email j...@subspacefield.org to get blacklisted.

Attachment: pgp3PXg4iNp59.pgp
Description: PGP signature

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss

Reply via email to