-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Charlie sent this out to the list a while ago, but it sounds like
there might be some interest in seeing it again.  Hope it helps...

- -- 
Dan Brown, KE6MKS, [EMAIL PROTECTED]
"Since all the world is but a story, it were well for thee to buy the
more enduring story rather than the story that is less enduring."
 -- The Judgment of St. Colum Cille 

- -----Original Message-----
From: Charlie Brady [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 02, 2000 7:18 PM
To: [EMAIL PROTECTED]
Subject: How to build yourself an e-smith interface RPM



I'm working on some additional documentation so that you can "move up
the
food chain" and turn your customisation into an RPM that other people
can
use.  Here is a draft:

[Step zero - configure your personal RPM environment

# make yourself an RPM playpen - doing things this way means you
don't
# have to be root to build things.

 mkdir -p rpms/{SRPMS,BUILD,SPECS,RPMS,lib}
 mkdir -p rpms/RPMS/{i386,noarch}
 rpm --initdb --dbpath ~/rpms/lib

# configure rpm to use this playpen
 echo "%_topdir $HOME/rpms" > ~/.rpmmacros
]

* Install a skeletal e-smith package:

 rpm -iv ftp://ftp.e-smith.net/pub/e-smith/contrib/\
   charlieb/SRPMS/e-smith-skel-0.1-1.src.rpm

* Make yourself a new RPM spec file:

 cd ~/rpms/SPEC
 mv e-smith-skel.spec e-smith-mypackage.spec

* Make yourself a workspace to develop your code in:

 rpm -bp e-smith-mypackage.spec
 cd ../BUILD
 mv e-smith-skel-0.1 e-smith-mypackage-0.1

* Make your changes to the skeletal package

 # edit the spec file
 # Change all or some of Summary, %define name, %changelog,
 # %description, %pre, %preun, %post
 # Add to Requires the name of the package that you are configuring
 vi ../SPEC/e-smith-mypackage.spec
 
 # Create e-smith-mypackage-0.1/root/etc/e-smith/templates/foo/bar
 # for each template you need
 # Create e-smith-mypackage-0.1/root/etc/e-smith/events/actions/fred
 # for each action that you need
 # Create directories
e-smith-mypackage-0.1/root/etc/e-smith/events/xxxx
 # for each event that your actions need to be performed for

 # Edit the creatlinks program to create the symlinks you require to
 # associate each of your actions with all of the events it need to
be
 # run for 
 vi e-smith-mypackage-0.1/createlinks

 # Create e-smith-mypackage-0.1/root/etc/e-smith/web/functions/blah
 # for each new screen that will be part of the e-smith-manager or
other
 # panel
 # Edit the creatlinks program to create the symlinks you require to
 # attach these web screens to the manager or other panel
 vi e-smith-mypackage-0.1/createlinks

* Make a tarball of your package:

 tar zcvf ../SOURCES/e-smith-mypackage-0.1.tar.gz
e-smith-mypackage-0.1

* Build new binary and source RPMS:

 rpm -ba ../SPEC/e-smith-mypackage.spec

* Post your RPMs to your ftp site, and tell the world

* Start testing your RPMs before your mailbox fills up

- -- 

  Charlie Brady                         [EMAIL PROTECTED]
  http://www.e-smith.org (development)  http://www.e-smith.com
(corporate)
  Phone: +1 (613) 564 8000 ext. 4378    Fax: +1 (613) 564 7739
  e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada







-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4

iQA/AwUBPNaLEX6CI7gsQbX8EQLr9QCdGx7WyjGCGXNTJWU1ZZS7oZpmd+AAn2MN
7nUon3k+B6Dejo98agp3rsyF
=b6b4
-----END PGP SIGNATURE-----


--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to