Geoffroy Vallée
2007-04-19 17:22:30 UTC
Hi,
Thanks to the Dann's remarks, i think i can now create better Debian packages
for systemimager. So i will send again few patches to slowly submit
modifications i have made.
The first patch is a patch for the creation of systemimager-bittorrent package
(like for RPMs). Dann, can you let me know what you think about it?
Index: debian/control.in
===================================================================
--- debian/control.in (revision 49)
+++ debian/control.in (working copy)
@@ -70,3 +70,16 @@
.
This release requires that your client has enough memory to hold a copy
of the system image.
+
+Package: systemimager-bittorrent
+Architecture: all
+Depends: systemimager-server (>=3.8.0-1)
+Description:
+ Utilities and libraries common to both the server and client
+ SystemImager is a set of utilities for installing GNU/Linux software images
to
+ clients machines over the network. Images are stored in flat files on the
+ server, making updates easy. The rsync protocol is used for transfers,
making
+ updates efficient.
+ .
+ The bittorrent package allows you to use the BitTorrent protocol to perform
+ installations.
Index: debian/rules
===================================================================
--- debian/rules (revision 49)
+++ debian/rules (working copy)
@@ -20,7 +20,8 @@
-p $(PKG)-common \
-p $(PKG)-doc \
-p $(PKG)-server \
- -p $(PKG)-server-flamethrowerd
+ -p $(PKG)-server-flamethrowerd \
+ -p $(PKG)-bittorrent
BOOTARCHS = i386 ia64
@@ -101,6 +102,7 @@
$(PKG)-server-flamethrowerd
rm -f debian/$(PKG)-server.init
rm -f debian/$(PKG)-server-flamethrowerd.init
+ rm -f debian/$(PKG)-bittorrent.init
dh_clean
install-arch: build-arch
@@ -143,6 +145,17 @@
mkdir -p $(CURDIR)/debian/$(PKG)-server-flamethrowerd/etc/systemimager
mv $(CURDIR)/debian/$(PKG)-server/etc/systemimager/flamethrower.conf \
$(CURDIR)/debian/$(PKG)-server-flamethrowerd/etc/systemimager/
+
+ # prepare the bittorrent package
+ mkdir -p $(CURDIR)/debian/$(PKG)-bittorrent/etc/init.d
+ mkdir -p $(CURDIR)/debian/$(PKG)-bittorrent/etc/systemimager
+ mkdir -p $(CURDIR)/debian/$(PKG)-bittorrent/usr/sbin
+ mkdir -p
$(CURDIR)/debian/$(PKG)-bittorrent/var/lib/systemimager/tarballs
+ mkdir -p
$(CURDIR)/debian/$(PKG)-bittorrent/var/lib/systemimager/torrents
+ mv $(CURDIR)/debian/$(PKG)-server/etc/systemimager/bittorrent.conf \
+ $(CURDIR)/debian/$(PKG)-bittorrent/etc/systemimager
+ mv $(CURDIR)/debian/$(PKG)-server/usr/sbin/si_installbtimage \
+ $(CURDIR)/debian/$(PKG)-bittorrent/usr/sbin
# Build architecture-dependent files here.
binary-arch: build-arch install-arch
@@ -186,6 +199,11 @@
dh_installinit -p$(PKG)-server-flamethrowerd \
--init-script=$(PKG)-server-flamethrowerd
+ cp ./$(PKG)-$(VERSION)/etc/init.d/$(PKG)-server-bittorrent \
+ ./debian/$(PKG)-bittorrent.init
+ dh_installinit -p$(PKG)-bittorrent \
+ --init-script=$(PKG)-server-bittorrent
+
dh_installchangelogs $(NON_BOOT_PKGS)
dh_link $(NON_BOOT_PKGS)
dh_strip $(NON_BOOT_PKGS)
Thanks,
Thanks to the Dann's remarks, i think i can now create better Debian packages
for systemimager. So i will send again few patches to slowly submit
modifications i have made.
The first patch is a patch for the creation of systemimager-bittorrent package
(like for RPMs). Dann, can you let me know what you think about it?
Index: debian/control.in
===================================================================
--- debian/control.in (revision 49)
+++ debian/control.in (working copy)
@@ -70,3 +70,16 @@
.
This release requires that your client has enough memory to hold a copy
of the system image.
+
+Package: systemimager-bittorrent
+Architecture: all
+Depends: systemimager-server (>=3.8.0-1)
+Description:
+ Utilities and libraries common to both the server and client
+ SystemImager is a set of utilities for installing GNU/Linux software images
to
+ clients machines over the network. Images are stored in flat files on the
+ server, making updates easy. The rsync protocol is used for transfers,
making
+ updates efficient.
+ .
+ The bittorrent package allows you to use the BitTorrent protocol to perform
+ installations.
Index: debian/rules
===================================================================
--- debian/rules (revision 49)
+++ debian/rules (working copy)
@@ -20,7 +20,8 @@
-p $(PKG)-common \
-p $(PKG)-doc \
-p $(PKG)-server \
- -p $(PKG)-server-flamethrowerd
+ -p $(PKG)-server-flamethrowerd \
+ -p $(PKG)-bittorrent
BOOTARCHS = i386 ia64
@@ -101,6 +102,7 @@
$(PKG)-server-flamethrowerd
rm -f debian/$(PKG)-server.init
rm -f debian/$(PKG)-server-flamethrowerd.init
+ rm -f debian/$(PKG)-bittorrent.init
dh_clean
install-arch: build-arch
@@ -143,6 +145,17 @@
mkdir -p $(CURDIR)/debian/$(PKG)-server-flamethrowerd/etc/systemimager
mv $(CURDIR)/debian/$(PKG)-server/etc/systemimager/flamethrower.conf \
$(CURDIR)/debian/$(PKG)-server-flamethrowerd/etc/systemimager/
+
+ # prepare the bittorrent package
+ mkdir -p $(CURDIR)/debian/$(PKG)-bittorrent/etc/init.d
+ mkdir -p $(CURDIR)/debian/$(PKG)-bittorrent/etc/systemimager
+ mkdir -p $(CURDIR)/debian/$(PKG)-bittorrent/usr/sbin
+ mkdir -p
$(CURDIR)/debian/$(PKG)-bittorrent/var/lib/systemimager/tarballs
+ mkdir -p
$(CURDIR)/debian/$(PKG)-bittorrent/var/lib/systemimager/torrents
+ mv $(CURDIR)/debian/$(PKG)-server/etc/systemimager/bittorrent.conf \
+ $(CURDIR)/debian/$(PKG)-bittorrent/etc/systemimager
+ mv $(CURDIR)/debian/$(PKG)-server/usr/sbin/si_installbtimage \
+ $(CURDIR)/debian/$(PKG)-bittorrent/usr/sbin
# Build architecture-dependent files here.
binary-arch: build-arch install-arch
@@ -186,6 +199,11 @@
dh_installinit -p$(PKG)-server-flamethrowerd \
--init-script=$(PKG)-server-flamethrowerd
+ cp ./$(PKG)-$(VERSION)/etc/init.d/$(PKG)-server-bittorrent \
+ ./debian/$(PKG)-bittorrent.init
+ dh_installinit -p$(PKG)-bittorrent \
+ --init-script=$(PKG)-server-bittorrent
+
dh_installchangelogs $(NON_BOOT_PKGS)
dh_link $(NON_BOOT_PKGS)
dh_strip $(NON_BOOT_PKGS)
Thanks,
--
Geoffroy
Geoffroy