[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: creating a debian package that doesn't require compiling...



Jeremy Higgs <jhiggs@iprsystems.com> wrote:
so... there were no errors, but there still are some files missing.

there is a file (from the RPM version) that is supposed to be
installed into /etc/init.d/. How do I do that?

Please read the man page for dh_installinit, which you're already using
- the file it installs needs to go in debian/init.d or one of a few
other places.

there's also a etc/firewall.conf file that is GENERATED after the
install (otherwise it will not find any of the modules in
/etc/firewall-modules/). this is done by typing /etc/rc.firewall
--update-config (rc.firewall is supposed to go in
/etc/rc.d/rc.firewall, but debian doesn't have an rc.d dir, so I put
it in /etc, unless there is a better place?)

That sounds like a bad idea. See chapter 3.3 of the Debian Policy Manual
for the policy on initialization scripts, assuming rc.firewall is one
such. If it isn't, then you should probably put it in /usr/sbin.

If you're not sure about where a file should go, the policy manual is
the first place you should look. For most things relating to the
location of files, it redirects you to the Filesystem Hierarchy Standard
(policy 3.1).

rc.firewall is simply a bash script that pulls variables from the /etc/firewall.conf file and ipchains commands from the modules in /etc/firewall-modules/

I'll have a look at the policy manual, though...


there is also an S11firewall file in the tarball, which I would like
to include. How do I ensure it is installed into /etc/rc2.3 ,
 >/etc/rc3.d and /etc/rc.4d (any others?)?

Oh, S11firewall is actually something that calls rc.firewall?

S11firewall doesn't HAVE to be run, but is included in the tarball in case you wish to start the firewall on boot.

Anyway,
again, read the docs for dh_installinit, and then probably the man page
for update-rc.d. The former should install the file for you if it's put
in the right place, and the latter should be called in your package
maintainer scripts to set up /etc/rc*.d links correctly. dh_installinit
will put appropriate code fragments in these scripts for you, though you
may have to poke it a bit to get update-rc.d to do exactly what you
want.

--
Colin Watson                                     [cjw44@flatline.org.uk]


--
To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

thanks!



Reply to: