1Create Software Depot for Samba 2------------------------------- 3 41. Compile the source code 5 The packaging assumes that the final product will install under /opt/samba 6 and will use /var/opt/samba for var directory. In order to support these 7 assumptions, run configure as follows: 8 9 ./configure --prefix /opt/samba --localstatedir /var/opt/samba 10 11 Afterwards compile the source code in a standard way. 12 132. In packaging/HPUX directory run the following command: 14 15 $ create_package.sh 16 173. Use resulting samba.depot file as the software depot for Samba. 18 19Brief Description of Depot 20-------------------------- 21 22The software depot contains product Samba, which consists of the following 23three filesets: 24 25 Samba.core Core samba server components, everything but SWAT 26 and man pages 27 28 Samba.man Man pages. Note that HP-UX uses different section 29 numbering, so the man pages are moved and modified 30 to correct the section references (i.e. nmbd(8) changed 31 to nmbd(1m)). 32 33 Samba.swat SWAT tool. 34 35The configure scripts will take care of the following: 36 37 Samba.core 1. create pcguest account should it not exist. The 38 login shell is set to /usr/bin/true 39 2. create startup/shutdown links at: 40 /sbin/rc3.d/S911samba 41 /sbin/rc2.d/K130samba 42 3. copy boot configuration file from newconfig to 43 /etc/rc.config.d, if one does not exist. 44 45 Samba.man 1. add /opt/samba/man to default man search path in 46 /etc/MANPATH 47 48 Samba.swat 1. add swat service to /etc/services if necessary. 49 Swat will run through port 901. 50 2. add swat to /etc/inetd.conf, if necessary. 51 3. signal (SIGHUP) inetd to reread configuration if 52 1. or 2. were changed. 53 54The unconfigure scripts will, upon the product removal, do the following: 55 56 Samba.core 1. remove startup/shutdown links 57 2. remove user pcguest 58 59 Samba.man N/A 60 61 Samba.swat 1. remove swat from /etc/services 62 2. remove swat from /etc/inetd.conf 63 3. signal inetd (SIGHUP) to reread configuration 64 65Author: Leon Mlakar <leon@hermes.si> 66