Index: /projects/dploy/pbconf/devel/dploy-dhcp/deb/control
===================================================================
--- /projects/dploy/pbconf/devel/dploy-dhcp/deb/control	(revision 388)
+++ /projects/dploy/pbconf/devel/dploy-dhcp/deb/control	(revision 388)
@@ -0,0 +1,19 @@
+Source: PBPKG
+Section: PBGRP
+Priority: optional
+Maintainer: PBPACKAGER
+Build-Depends: debhelper (>= 4.2.20), PBDEP
+Standards-Version: 3.6.1
+
+Package: PBPKG
+Architecture: amd64 i386 ia64
+Section: PBGRP
+Priority: optional
+Depends: ${shlibs:Depends}, ${misc:Depends}, PBDEP
+Recommends: PBREC
+Suggests: PBSUG
+Description: 
+ PBDESC
+ .
+ Homepage: PBURL
+
Index: /projects/dploy/pbconf/devel/dploy-dhcp/deb/compat
===================================================================
--- /projects/dploy/pbconf/devel/dploy-dhcp/deb/compat	(revision 388)
+++ /projects/dploy/pbconf/devel/dploy-dhcp/deb/compat	(revision 388)
@@ -0,0 +1,1 @@
+4
Index: /projects/dploy/pbconf/devel/dploy-dhcp/deb/changelog
===================================================================
--- /projects/dploy/pbconf/devel/dploy-dhcp/deb/changelog	(revision 388)
+++ /projects/dploy/pbconf/devel/dploy-dhcp/deb/changelog	(revision 388)
@@ -0,0 +1,1 @@
+PBLOG
Index: /projects/dploy/pbconf/devel/dploy-dhcp/deb/copyright
===================================================================
--- /projects/dploy/pbconf/devel/dploy-dhcp/deb/copyright	(revision 388)
+++ /projects/dploy/pbconf/devel/dploy-dhcp/deb/copyright	(revision 388)
@@ -0,0 +1,27 @@
+This package is debianized by PBPACKAGER
+`date`
+
+The current upstream source was downloaded from
+ftp://ftp.dploy.org/src/.
+
+Upstream Authors: Put their name here
+
+Copyright:
+
+   This package is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; version 2 dated June, 1991.
+
+   This package is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this package; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
+   MA 02110-1301, USA.
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in /usr/share/common-licenses/GPL.
+
Index: /projects/dploy/pbconf/devel/dploy-dhcp/deb/dploy-dhcp.docs
===================================================================
--- /projects/dploy/pbconf/devel/dploy-dhcp/deb/dploy-dhcp.docs	(revision 388)
+++ /projects/dploy/pbconf/devel/dploy-dhcp/deb/dploy-dhcp.docs	(revision 388)
@@ -0,0 +1,5 @@
+INSTALL
+COPYING
+AUTHORS
+NEWS
+README
Index: /projects/dploy/pbconf/devel/dploy-dhcp/deb/rules
===================================================================
--- /projects/dploy/pbconf/devel/dploy-dhcp/deb/rules	(revision 388)
+++ /projects/dploy/pbconf/devel/dploy-dhcp/deb/rules	(revision 388)
@@ -0,0 +1,133 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+#
+# $Id$
+#
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# Define package name variable for a one-stop change.
+PACKAGE_NAME = PBPKG
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+        CFLAGS += -O0
+else
+        CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+        INSTALL_PROGRAM += -s
+endif
+config.status: configure
+        dh_testdir
+
+        # Configure the package.
+        CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr
+ --mandir=\$${prefix}/share/man
+
+# Build both architecture dependent and independent
+build: build-arch build-indep
+
+# Build architecture dependent
+build-arch: build-arch-stamp
+
+build-arch-stamp:  config.status
+        dh_testdir
+
+        # Compile the package.
+        $(MAKE)
+
+        touch build-stamp
+
+# Build architecture independent
+build-indep: build-indep-stamp
+
+build-indep-stamp:  config.status
+        # Nothing to do, the only indep item is the manual which is available as html in original source
+        touch build-indep-stamp
+
+# Clean up
+clean:
+        dh_testdir
+        dh_testroot
+        rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP#
+        # Clean temporary document directory
+        rm -rf debian/doc-temp
+        # Clean up.
+        -$(MAKE) distclean
+        rm -f config.log
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+        cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+        cp -f /usr/share/misc/config.guess config.guess
+endif
+
+        dh_clean
+
+# Install architecture dependent and independent
+install: install-arch install-indep
+
+# Install architecture dependent
+install-arch: build-arch
+        dh_testdir
+        dh_testroot
+        dh_clean -k -s
+        dh_installdirs -s
+
+        # Install the package files into build directory:
+        # - start with upstream make install
+        $(MAKE) install prefix=$(CURDIR)/debian/$(PACKAGE_NAME)/usr mandir=$(CURDIR)/debian/$(PACKAGE_NAME)/us
+r/share/man
+        # - copy html manual to temporary location for renaming
+        mkdir -p debian/doc-temp
+        dh_install -s
+
+# Install architecture independent
+install-indep: build-indep
+        dh_testdir
+        dh_testroot
+        dh_clean -k -i
+        dh_installdirs -i
+        dh_install -i
+
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
+binary-common:
+        dh_testdir
+        dh_testroot
+        dh_installchangelogs ChangeLog
+        dh_installdocs
+        dh_installman
+        dh_link
+        dh_strip
+        dh_compress
+        dh_fixperms
+        dh_installdeb
+        dh_shlibdeps
+        dh_gencontrol
+        dh_md5sums
+        dh_builddeb
+
+# Build architecture independant packages using the common target.
+binary-indep: build-indep install-indep
+        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build-arch install-arch
+        $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
+
+# Build architecture depdendent and independent packages
+binary: binary-arch binary-indep
+.PHONY: clean binary
+
Index: /projects/dploy/pbconf/devel/dploy-dhcp/rpm/dploy-dhcp.spec
===================================================================
--- /projects/dploy/pbconf/devel/dploy-dhcp/rpm/dploy-dhcp.spec	(revision 388)
+++ /projects/dploy/pbconf/devel/dploy-dhcp/rpm/dploy-dhcp.spec	(revision 388)
@@ -0,0 +1,57 @@
+#
+# $Id$
+#
+
+Summary:        dploy.org DHCP interface tools
+Summary(fr):    Outils d'interface DHCP pour dploy.org
+
+Name:           PBPKG
+Version:        PBVER
+Release:        PBTAGPBSUF
+License:        GPL
+Group:          PBGRP
+Url:            PBURL
+Source:         PBSRC
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
+Requires:       dploy-common, dhcp-server, sudo, perl, PBDEP
+
+%description
+PBDESC
+
+%description -l fr
+Outils d'interface DHCP pour dploy.org
+
+%prep
+%setup -q
+
+%install
+%{__rm} -rf $RPM_BUILD_ROOT
+export DESTDIR=$RPM_BUILD_ROOT
+export PREFIX=%{_exec_prefix} 
+export CONFDIR=%{_sysconfdir}/PBPROJ
+./install.sh
+
+%clean
+%{__rm} -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%doc ChangeLog
+#%doc INSTALL COPYING README AUTHORS NEWS
+%{_bindir}/*
+
+%post
+# Include our configuration file in std dhcp.conf file
+grep -qE '^include "%{_sysconfdir}/PBPROJ/dhcpd.conf";' /etc/dhcpd.conf
+if [ $? -ne 0 ]; then
+	echo 'include "%{_sysconfdir}/PBPROJ/dhcpd.conf";' >> /etc/dhcpd.conf
+fi
+
+# Include dploy in sudoers
+grep -qE '^dploy ' /etc/sudoers
+if [ $? -ne 0 ]; then
+	echo 'dploy ALL=NOPASSWD: /etc/init.d/dhcpd ?*' >> /etc/sudoers
+fi
+
+%changelog
+PBLOG
Index: /projects/dploy/pbconf/devel/dploy.pb
===================================================================
--- /projects/dploy/pbconf/devel/dploy.pb	(revision 388)
+++ /projects/dploy/pbconf/devel/dploy.pb	(revision 388)
@@ -0,0 +1,90 @@
+#
+# Project Builder configuration file
+# For project dploy
+#
+# $Id$
+#
+
+#
+# Which CMS system is used (Subversion, CVS or tar file content extracted)
+#
+cms dploy = svn
+#cms dploy = cvs
+#cms dploy = flat
+
+#
+# Packager label
+#
+packager dploy = "Bruno Cornec <bruno@dploy.org>"
+#
+
+# For delivery to a machine by SSH (potentially the FTP server)
+# Needs hostname, account and directory
+#
+sshhost dploy = www.dploy.org
+sshlogin dploy = bruno
+sshdir dploy = /dploy/ftp
+sshport dploy = 22
+
+#
+# For Virtual machines management
+# Naming convention to follow: distribution name (as per ProjectBuilder::Distribution)
+# followed by '_' and by release number
+# a .vmtype extension will be added to the resulting string
+# a QEMU rhel_3 here means that the VM will be named rhel_3.qemu
+#
+vmlist dploy = mandrake_10.1,mandrake_10.2,mandriva_2006.0,mandriva_2007.0,mandriva_2007.1,mandriva_2008.0,redhat_7.3,redhat_9,fedora_4,fedora_5,fedora_6,fedora_7,rhel_3,rhel_4,rhel_5,suse_10.0,suse_10.1,suse_10.2,suse_10.3,sles_9,sles_10,gentoo_nover,debian_3.1,debian_4.0,ubuntu_6.06,ubuntu_7.04,ubuntu_7.10
+
+#
+# Valid values for vmtype are
+# qemu, (vmware, xen, ... TBD)
+vmtype dploy = qemu
+
+# Hash for VM stuff on vmtype
+vmntp default = pool.ntp.org
+
+# We suppose we can commmunicate with the VM through SSH
+vmhost dploy = localhost
+vmlogin dploy = pb
+vmport dploy = 2225
+
+# Timeout to wait when VM is launched/stopped
+vmtmout default = 120
+
+# per VMs needed paramaters
+vmopt dploy = -m 384 -daemonize
+vmpath dploy = /home/qemu
+vmsize dploy = 5G
+
+#
+# Global version/tag for the project
+#
+projver dploy = devel
+projtag dploy = 1
+
+# Adapt to your needs:
+# Optional if you need to overwrite the global values above
+#
+pkgver dploy-dhcp = devel
+pkgver dploy-common = devel
+pkgver dploy-pxe = devel
+#pkgtag dploy-dhcp = 3
+#pkgver nil
+#pkgtag nil
+
+# Hash of default package/package directory
+defpkgdir dploy-dhcp = dploy-dhcp
+defpkgdir dploy-common = dploy-common
+defpkgdir dploy-pxe = dploy-pxe
+
+# Hash of additional package/package directory
+#extpkgdir pkg1-doc = pkg1-docdir
+
+# Hash of valid version names
+version pb = devel,stable
+
+# List of files per pkg on which to apply filters
+# Files are mentioned relatively to pbroot/defpkgdir
+filteredfiles dploy-dhcp = install.sh,bin/dploy-add2dhcp
+filteredfiles dploy-common = install.sh
+#filteredfiles pkg1-doc = configure.in
Index: /projects/dploy/pbconf/devel/pbfilter/deb.pbf
===================================================================
--- /projects/dploy/pbconf/devel/pbfilter/deb.pbf	(revision 388)
+++ /projects/dploy/pbconf/devel/pbfilter/deb.pbf	(revision 388)
@@ -0,0 +1,29 @@
+#
+# $Id$
+#
+# Filter for debian build
+#
+# PBGRP is replaced by the group of apps
+filter PBGRP = utils
+
+# PBVER is replaced by the version ($pbver in code)
+filter PBVER = $pbver
+
+# PBDEP is replaced by the list of dependencies
+filter PBDEP =
+
+# PBSUG is replaced by the list of suggestions
+filter PBSUG =
+
+# PBREC is replaced by the list of recommandations
+filter PBREC =
+
+# PBLOG is replaced by the changelog if value is yes
+filter PBLOG = yes
+
+# PBPKG is replaced by the package name ($pbpkg in code)
+filter PBPKG = $pbpkg
+
+# PBPACKAGER is replaced by the packager name ($pbpackager in code)
+filter PBPACKAGER = $pbpackager
+
Index: /projects/dploy/pbconf/devel/pbfilter/rpm.pbf
===================================================================
--- /projects/dploy/pbconf/devel/pbfilter/rpm.pbf	(revision 388)
+++ /projects/dploy/pbconf/devel/pbfilter/rpm.pbf	(revision 388)
@@ -0,0 +1,19 @@
+#
+# $Id$
+#
+# Filter for rpm build
+#
+
+# PBGRP is replaced by the RPM group of apps
+# Cf: http://fedoraproject.org/wiki/RPMGroups
+filter PBGRP = Applications/Archiving
+
+# PBDEP is replaced by the list of dependencies
+filter PBDEP = 
+
+# PBSUF is replaced by the package name ($pbpkg in code)
+filter PBSUF = $pbsuf
+
+# PBOBS is replaced by the Obsolete line
+filter PBOBS =
+
Index: /projects/dploy/pbconf/devel/pbfilter/novell.pbf
===================================================================
--- /projects/dploy/pbconf/devel/pbfilter/novell.pbf	(revision 388)
+++ /projects/dploy/pbconf/devel/pbfilter/novell.pbf	(revision 388)
@@ -0,0 +1,2 @@
+# Specific group for SuSE for dploy
+filter PBGRP = Productivity/Archiving/Backup
Index: /projects/dploy/pbconf/devel/pbfilter/md.pbf
===================================================================
--- /projects/dploy/pbconf/devel/pbfilter/md.pbf	(revision 388)
+++ /projects/dploy/pbconf/devel/pbfilter/md.pbf	(revision 388)
@@ -0,0 +1,2 @@
+# Specific group for Mandriva for dploy
+filter PBGRP = Archiving/Backup
Index: /projects/dploy/pbconf/devel/pbfilter/all.pbf
===================================================================
--- /projects/dploy/pbconf/devel/pbfilter/all.pbf	(revision 388)
+++ /projects/dploy/pbconf/devel/pbfilter/all.pbf	(revision 388)
@@ -0,0 +1,37 @@
+#
+# $Id$
+#
+# Filter for all files
+#
+# PBSRC is replaced by the source package format
+filter PBSRC = ftp://ftp.dploy.org/src/%{name}-%{version}.tar.gz
+
+# PBVER is replaced by the version ($pbver in code)
+filter PBVER = $pbver
+
+# PBDATE is replaced by the date ($pbdate in code)
+filter PBDATE = $pbdate
+
+# PBLOG is replaced by the changelog if value is yes
+filter PBLOG = yes
+
+# PBTAG is replaced by the tag ($pbtag in code)
+filter PBTAG = $pbtag
+
+# PBREV is replaced by the revision ($pbrev in code)
+filter PBREV = $pbrev
+
+# PBPKG is replaced by the package name ($pbpkg in code)
+filter PBPKG = $pbpkg
+
+# PBPACKAGER is replaced by the packager name ($pbpackager in code)
+filter PBPACKAGER = $pbpackager
+
+# PBDESC contains the description of the package
+filter PBDESC = "dploy.org is a deployment server in a box"
+
+# PBURL contains the URL of the Web site of the project
+filter PBURL = http://www.dploy.org
+
+# Project Name
+filter PBPROJ = $pbproj
Index: /projects/dploy/pbconf/devel/dploy-common/rpm/dploy-common.spec
===================================================================
--- /projects/dploy/pbconf/devel/dploy-common/rpm/dploy-common.spec	(revision 388)
+++ /projects/dploy/pbconf/devel/dploy-common/rpm/dploy-common.spec	(revision 388)
@@ -0,0 +1,72 @@
+#
+# $Id$
+#
+
+Summary:        dploy.org common tools
+Summary(fr):    Outils communs pour dploy.org
+
+Name:           PBPKG
+Version:        PBVER
+Release:        PBTAGPBSUF
+License:        GPL
+Group:          PBGRP
+Url:            PBURL
+Source:         PBSRC
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
+Requires:       openssh, PBDEP
+
+%description
+PBDESC
+
+%description -l fr
+Outils communs pour dploy.org
+
+%prep
+%setup -q
+
+%install
+%{__rm} -rf $RPM_BUILD_ROOT
+export DESTDIR=$RPM_BUILD_ROOT
+export PREFIX=%{_exec_prefix}
+export CONFDIR=%{_sysconfdir}/PBPROJ
+./install.sh 
+
+%clean
+%{__rm} -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,dploy,dploy)
+%doc ChangeLog
+#%doc INSTALL COPYING README AUTHORS NEWS
+%config(noreplace) %{_sysconfdir}/PBPROJ
+
+%pre
+# Create dploy Account and group if needed
+grep -qE '^dploy:' /etc/group
+if [ $? -ne 0 ]; then
+	addgroup dploy
+fi
+grep -qE '^dploy:' /etc/passwd
+if [ $? -ne 0 ]; then
+	adduser dploy dploy
+fi
+
+%post
+# Open ssh access for dploy account with generated keys
+mkdir -p ~dploy/.ssh
+chmod 700 ~dploy/.ssh
+keyf=~dploy/.ssh/authorized_keys
+if [ -f $keyf ]; then
+	key=`cut -d' ' -f2 %{_sysconfdir}/PBPROJ/keys/dploy_id_dsa.pub`
+	grep -qE \'$key\' $keyf
+	if [ $? -ne 0 ]; then
+		cat %{_sysconfdir}/PBPROJ/keys/dploy_id_dsa.pub >> $keyf
+	fi
+else
+	cp %{_sysconfdir}/PBPROJ/keys/dploy_id_dsa.pub $keyf
+	chown dploy:dploy $keyf
+	chmod 600 $keyf
+fi
+
+%changelog
+PBLOG
