[csw-maintainers] INITSMF not generating scripts

Peter Bonivart bonivart at opencsw.org
Mon Nov 7 18:32:13 CET 2011


On Mon, Nov 7, 2011 at 6:12 PM, Jake Goerzen <jgoerzen at opencsw.org> wrote:
> On 11/7/2011 9:07 AM, Dagobert Michelsen wrote:
>>
>> Hi Jake,
>>
>> Am 07.11.2011 um 17:50 schrieb Jake Goerzen:
>>>
>>>  I recently committed an updated recipe for CSWdovecot
>>> (http://sourceforge.net/apps/trac/gar/changeset/16069).  For some reason the
>>> class action INITSMF is not generating any scripts.  Could someone help me
>>> figure out why?  It was working before this commit and I don't see why it
>>> shouldn't work.
>>
>> Sure, some issues:
>>
>> - This rule does not exist (note the double-minus):
>>      pre-merge--modulated:
>>   Therefore the init-script is never installed in the right place
>> - You inserted pre-merge-modulated which operates on $(PKGROOT), not
>> $(DESTDIR) as post-install
>> - use EXTRA_MERGE_EXCLUDE_FILES instead of the PROTOTYPE_FILTER makes it
>> more readable
>>
>>
>> Best regards
>>
>>   -- Dago
>>
>
> Thank you Sir,  It should have caught that one.

In these cases I find it very helpful to actually look inside the
generated package:

(trimmed to the interesting parts)

bonivart at login[clamav]$ gzcat
clamav-0.97.3\,REV\=2011.10.27-SunOS5.10-i386-CSW.pkg.gz | strings |
more
...
CLASSES=none cswusergroup ugfiles cswmigrateconf cswcpsampleconf cswinitsmf
...
1 f cswcpsampleconf /etc/opt/csw/clamav-milter.conf.CSW 0644 root bin
8686 37116 1319724990
1 f cswcpsampleconf /etc/opt/csw/clamd.conf.CSW 0644 root bin 14957
60524 1319724990
1 f cswcpsampleconf /etc/opt/csw/freshclam.conf.CSW 0600 root bin 7774
38570 1319724990
1 d none /etc/opt/csw/init.d 0755 root bin
1 f cswinitsmf /etc/opt/csw/init.d/cswclamav-milter 0755 root bin 2882
25050 1319724990
1 f cswinitsmf /etc/opt/csw/init.d/cswclamd 0755 root bin 1109 18216 1319724990
1 d none /etc/opt/csw/pkg 0755 root bin
1 d none /etc/opt/csw/pkg/CSWclamav 0755 root bin
1 f cswmigrateconf /etc/opt/csw/pkg/CSWclamav/cswmigrateconf 0644 root
bin 135 11755 1319724994
1 f cswusergroup /etc/opt/csw/pkg/CSWclamav/cswusergroup 0644 root bin
50 4535 1319724990
1 f none /opt/csw/bin/clambc 0755 root bin 70004 8658 1319724993
1 f none /opt/csw/bin/clamconf 0755 root bin 71320 25934 1319724993
...
07070100104776000081a40000271300002710000000014ea968b5000002c40000012f000001cb00000000000000000000000f00000000install
/depend
P CSWcas-cpsampleconf cas_cpsampleconf - Class action script cpsampleconf
P CSWcas-initsmf cas_initsmf - Class action script initsmf
P CSWcas-migrateconf cas_migrateconf - Class action script migrateconf
P CSWcas-usergroup cas_usergroup - Class action script usergroup
P CSWcommon common - common files and dirs for CSW packages
P CSWlibclam6 libclam6 - Clam AntiVirus Library
P CSWlibz1 libz1 - Zlib data compression library, libz.so.1
P CSWlibltdl7 libltdl7 - Libtool libltdl.so.7 from libtool 2.x
P CSWlibncurses5 libncurses5 - A free software emulation of curses,
libncurses.so.5
P CSWlibbz2-1-0 libbz2_1_0 - Compression library, libbz2.so.1.0
P CSWlibiconv2 libiconv2 - GNU iconv library, libiconv.so.2


More information about the maintainers mailing list