unh-iscsi for Debian -------------------- o Building the unh-iscsi deb for your customized kernel. First of all, I know that this package is built in a wrong way. However, I'm too lazy to do it properly. 1. Preparations You need to work on a machine running the kernel which you want to build the debian package for. And make sure that you can find a symlink from /lib/module/`uname -r`/build to the directory containing the kernel source. 2. Unpack the code and build Let me give a example on the assumption that I am building the package for linux kernel 2.6.8. Note: Below 'bash$' and 'bash#' denotes the bash prompt, you should type the commands that appear after them. bash$ ls unh-iscsi_1.6.00-1.diff.gz unh-iscsi_1.6.00-1.dsc unh-iscsi_1.6.00.orig.tar.gz bash$ dpkg-source -x unh-iscsi_1.6.00-1.dsc bash$ cd unh-iscsi-1.6.00 bash$ dpkg-buildpackage -uc -us -rfakeroot -B bash$ cd .. bash$ ls unh-iscsi-2.4.20_1.6.00-1_i386.deb unh-iscsi-2.6.8_1.6.00-1_i386.deb 3. Install bash$ su bash# dpkg -i unh-iscsi-2.6.8_1.6.00-1_i386.deb 4. Removal bash# apt-get remove unh-iscsi-2.6.8 o Peculiarities for Debian According to the Debian policy, I changed the locations of some files: * Default configure files are now in /etc/unh-iscsi/conf. * Log files are now in /var/log/unh-iscsi. * Some variable files are now in /var/lib/unh-iscsi. * The driver running as a target places disk image files in /var/lib/unh-iscsi/images. If you run the unh-iscsi driver as a target, change "MODE" variable in "/etc/init.d/unh-iscsi". --- Fujita Tomonori $Id: README.txt 138 2005-04-08 15:09:29Z fujita $