On Tuesday, July 29, 2003, at 12:45 PM, Jeffrey Ellis wrote:
Hi, All--
I was hoping to get some help with the .info files for each of these packages. I am a total newbie...hence the need for help :)
I need to add some commands at the end of the install process which will create a new directory and then copy and rename some files into that directory, and finally edit one of the files to add a line needed so the server will run.
What I need is this to be written out as it should go in the .info file for one of the projects, and I will edit the other two. The following are the commands I need (this example is for the opennap-ng project).:
mkdir /sw/share/opennap-ng cd doc/opennap-ng/examples cp sample.block /sw/share/opennap-ng/block;cp sample.channels /sw/share/opennap-ng/channels;cp sample.config /sw/share/opennap-ng/config;cp sample.filter = /sw/share/opennap-ng/filter;cp sample.motd /sw/share/opennap-ng/motd;cp sample.servers /sw/share/opennap-ng/servers;touch /sw/share/opennap-ng/users
I don't know anything about OpenNap, but based on your email, I would do the following:
------- InstallScript: << install -m 755 -d %i/share/%n install -m 644 doc/%n/examples/sample.block %i/share/%n/block install -m 644 doc/%n/examples/sample.channels %i/share/%n/channels install -m 644 doc/%n/examples/sample.config %i/share/%n/config install -m 644 doc/%n/examples/sample.filter %i/share/%n/filter install -m 644 doc/%n/examples/sample.motd %i/share/%n/motd install -m 644 doc/%n/examples/sample.servers %i/share/%n/servers
echo "# Uncomment the following line, and change appropriately" > %i/share/%n/servers
echo "# Admin mypassword [EMAIL PROTECTED] Admin 0 0" >> %i/share/%n/servers
<<
DescUsage: <<
The file %p/share/%n must be edited to set the admin password and email address.
<<
-------
If you haven't already, you should read the Fink Packaging manual
http://fink.sourceforge.net/doc/packaging/index.php
I'm not sure that /sw/share/opennap-ng is the right place to be putting these config files. /sw/etc/opennap-ng might be a better place. See:
http://fink.sourceforge.net/doc/packaging/fslayout.php#dirs
-- Rohan Lloyd
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel