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

Re: debian/crontab problems



On Mon, May 20, 2002 at 10:24:58AM -0400, Kevin C. Krinke wrote:

> When I run deb-make from within the appropriate directory it creates the
> sub directory "debian" with various example file (denoted by the .ex
> suffix). This is all fine and dandy and I haven't needed any of these
> files until now.
>
> I need to be able to make crontab entires in the system wide crontab. 
> For my purposes cron.daily and cron.hourly are not usefull enough.
> 
> So I go ahead and edit the debian/crontab.ex and save it as
> debian/crontab. I build the package (with no problems) yet when I
> install the package I can see no evidence what so ever of the crontab.

I believe debstd actually tries to add the contents debian/crontab to
/etc/crontab at install time.  This is NOT what you want, and would be a
policy violation since /etc/crontab is a conffile.  debstd is not taking
advantage of modern mechanisms for doing the same thing.

If you are new to Debian packaging, I recommend against using
debmake/debstd, as there are likely to be other subtle "gotchas" like this.
Instead, install debhelper and read its documentation.

Try installing dh-make and running dh_make instead of debmake.  This will
create example files using debhelper, and you can use debian/cron.d to add a
file to /etc/cron.d.

-- 
 - mdz


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



Reply to: