--- /dev/null
+Source: emi-px
+Priority: extra
+Maintainer: @MAINTAINER@
+Uploaders: @UPLOADERS@
+Build-Depends: debhelper (>= 7.0.50~)
+Standards-Version: 3.9.1
+Section: misc
+Homepage: @URL@
+DM-Upload-Allowed: yes
+@DEBIAN_VCS@
+
+Package: emi-lb
+Section: misc
+Architecture: any
+Depends: ${misc:Depends}, bdii, emi-version, fetch-crl, glite-px-myproxy-yaim, myproxy-server, myproxy-admin, glue-schema
+#TODO: glue-service-provider/glite-info-provider-service
+Description: @SUMMARY@
+@DEBIAN_DESCRIPTION@
 
--- /dev/null
+This work was packaged for Debian by:
+
+    @MAINTAINER@ on Thu, 08 Dec 2011 00:46:07 +0100
+
+It was downloaded from:
+
+    @URL@
+
+Upstream Author(s):
+
+    @MAINTAINER@
+
+Copyright:
+
+    <Copyright (C) 2004-2011 Members of the EGEE Collaboration>
+
+License:
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+On Debian systems, the complete text of the Apache version 2.0 license
+can be found in "/usr/share/common-licenses/Apache-2.0".
+
+The Debian packaging is:
+
+    Copyright (C) 2004-2011 Members of the EGEE Collaboration
+
+and is licensed under the Apache License, Version 2.0.
 
--- /dev/null
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+-include /usr/share/dpkg/buildflags.mk
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+configure: configure-stamp
+configure-stamp:
+       dh_testdir
+       /usr/bin/perl ./configure --thrflavour= --nothrflavour= --root=/ --prefix=/usr --libdir=lib --project=emi --module px.emi-px
+       touch $@
+
+build: build-indep
+
+build-indep: build-stamp
+
+build-stamp: configure-stamp
+       dh_testdir
+       touch $@
+
+clean: configure-stamp
+       dh_testdir
+       dh_testroot
+       rm -f configure-stamp build-stamp
+       $(MAKE) clean
+       rm -f Makefile.inc config.status
+       dh_clean
+
+install: build-stamp
+       dh_testdir
+       dh_testroot
+       dh_prep
+       dh_installdirs
+
+binary-indep: install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs
+       dh_installdocs
+       dh_installexamples
+       dh_installman
+       dh_installlogrotate
+       dh_installcron
+       dh_install --fail-missing
+       dh_link
+       dh_compress
+       dh_fixperms
+       dh_makeshlibs
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep
 
--- /dev/null
+Source: glite-px-myproxy-yaim
+Priority: extra
+Maintainer: @MAINTAINER@
+Uploaders: @UPLOADERS@
+Build-Depends: debhelper (>= 7.0.50~)
+Standards-Version: 3.9.1
+Section: admin
+Homepage: @URL@
+DM-Upload-Allowed: yes
+@DEBIAN_VCS@
+
+Package: glite-px-myproxy-yaim
+Section: admin
+Architecture: all
+Depends: ${misc:Depends}, glite-yaim-bdii, glite-yaim-core
+Description: @SUMMARY@
+@DEBIAN_DESCRIPTION@
 
--- /dev/null
+This work was packaged for Debian by:
+
+    @MAINTAINER@ on Thu, 08 Dec 2011 00:46:07 +0100
+
+It was downloaded from:
+
+    @URL@
+
+Upstream Author(s):
+
+    @MAINTAINER@
+
+Copyright:
+
+    <Copyright (C) 2004-2011 Members of the EGEE Collaboration>
+
+License:
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+On Debian systems, the complete text of the Apache version 2.0 license
+can be found in "/usr/share/common-licenses/Apache-2.0".
+
+The Debian packaging is:
+
+    Copyright (C) 2004-2011 Members of the EGEE Collaboration
+
+and is licensed under the Apache License, Version 2.0.
 
--- /dev/null
+opt/glite
+opt/glite/release
+opt/glite/release/glite-PX
+opt/glite/yaim
+opt/glite/yaim/defaults
+opt/glite/yaim/etc
+opt/glite/yaim/etc/versions
+opt/glite/yaim/examples
+opt/glite/yaim/examples/siteinfo
+opt/glite/yaim/examples/siteinfo/services
+opt/glite/yaim/functions
+opt/glite/yaim/node-info.d
 
--- /dev/null
+opt/glite/release/glite-PX/*
+opt/glite/yaim/defaults/*
+opt/glite/yaim/etc/versions/*
+opt/glite/yaim/examples/siteinfo/services/*
+opt/glite/yaim/functions/*
+opt/glite/yaim/node-info.d/*
 
--- /dev/null
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+-include /usr/share/dpkg/buildflags.mk
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+configure: configure-stamp
+configure-stamp:
+       dh_testdir
+       /usr/bin/perl ./configure --thrflavour= --nothrflavour= --root=/ --prefix=/usr --libdir=lib --project=emi --module px.myproxy-yaim
+       touch $@
+
+build: build-indep
+
+build-indep: build-stamp
+
+build-stamp: configure-stamp
+       dh_testdir
+       CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" $(MAKE)
+       CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" $(MAKE) check
+       touch $@
+
+clean: configure-stamp
+       dh_testdir
+       dh_testroot
+       rm -f configure-stamp build-stamp
+       $(MAKE) clean
+       rm -f Makefile.inc config.status
+       dh_clean
+
+install: build-stamp
+       dh_testdir
+       dh_testroot
+       dh_prep
+       dh_installdirs
+       $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+
+binary-indep: install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs
+       dh_installdocs
+       dh_installexamples
+       dh_installman
+       dh_installlogrotate
+       dh_installcron
+       dh_install --fail-missing
+       dh_link
+       dh_compress
+       dh_fixperms
+       dh_makeshlibs
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep
 
 
 ${MAN_GZ}: ${MAN}
        cp $? .
-       gzip -f $(notdir $?)
+       gzip -9 -f $(notdir $?)
 
 stage: compile
        $(MAKE) install PREFIX=${stagedir} staging=1
 
--- /dev/null
+Source: glite-px-proxyrenewal
+Priority: extra
+Maintainer: @MAINTAINER@
+Uploaders: @UPLOADERS@
+Build-Depends: debhelper (>= 7.0.50~), chrpath, libglobus-gssapi-gsi-dev, libtool, libmyproxy-dev, voms-dev
+Standards-Version: 3.9.1
+Section: misc
+Homepage: @URL@
+DM-Upload-Allowed: yes
+@DEBIAN_VCS@
+
+Package: glite-px-proxyrenewal
+Section: misc
+Architecture: any
+Depends: ${misc:Depends}, libglite-security-proxyrenewal2 (= ${binary:Version}), libglite-security-proxyrenewal-dev (= ${binary:Version}), glite-px-proxyrenewal-clients (= ${binary:Version})
+Description: Virtual package with runtime and development files of gLite proxyrenewal
+ This is a virtual package providing runtime and development files for gLite
+ proxyrenewal.
+
+Package: libglite-security-proxyrenewal2
+Section: misc
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: @SUMMARY@
+@DEBIAN_DESCRIPTION@
+
+Package: libglite-security-proxyrenewal-dev
+Section: libdevel
+Architecture: any
+Priority: extra
+Depends: libglite-security-proxyrenewal2 (= ${binary:Version}), ${misc:Depends}
+Description: Development files for gLite proxyrenewal library
+ This package contains development libraries and header files for gLite
+ proxyrenewal library.
+
+Package: glite-px-proxyrenewal-clients
+Section: misc
+Architecture: any
+Priority: extra
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: gLite proxyrenewal daemon and client 
+ This package contains daemon and client program of gLite proxyrenewal.
+
+Package: glite-px-proxyrenewal-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: libglite-security-proxyrenewal2 (= ${binary:Version}), ${misc:Depends}
+Description: gLite proxyrenewal debugging symbols
+ This package contains debugging symbols for gLite proxyrenewal.
 
--- /dev/null
+This work was packaged for Debian by:
+
+    @MAINTAINER@ on Thu, 08 Dec 2011 00:46:07 +0100
+
+It was downloaded from:
+
+    @URL@
+
+Upstream Author(s):
+
+    @MAINTAINER@
+
+Copyright:
+
+    <Copyright (C) 2004-2011 Members of the EGEE Collaboration>
+
+License:
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+On Debian systems, the complete text of the Apache version 2.0 license
+can be found in "/usr/share/common-licenses/Apache-2.0".
+
+The Debian packaging is:
+
+    Copyright (C) 2004-2011 Members of the EGEE Collaboration
+
+and is licensed under the Apache License, Version 2.0.
 
--- /dev/null
+etc/init.d
+usr/bin
+usr/share/man/man1
+usr/share/man/man8
 
--- /dev/null
+etc/init.d/*
+usr/bin/*
+usr/share/man/man*/*
 
--- /dev/null
+usr/include/glite
+usr/include/glite/security
+usr/include/glite/security/proxyrenewal
+usr/lib
 
--- /dev/null
+usr/include/glite/security/proxyrenewal/*.h
+usr/lib/lib*.so
 
--- /dev/null
+usr/lib
+usr/share/doc/glite-px-proxyrenewal
 
--- /dev/null
+usr/lib/lib*.so.*
+usr/share/doc/glite-px-proxyrenewal/*
 
--- /dev/null
+#!/bin/sh
+set -e
+
+getent group glite >/dev/null || groupadd -r glite
+getent passwd glite >/dev/null || useradd -r -g glite -d /var/glite -c "gLite user" glite
+mkdir -p /var/glite /var/log/glite 2>/dev/null || :
+chown glite:glite /var/glite /var/log/glite
+
+#DEBHELPER#
 
--- /dev/null
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+-include /usr/share/dpkg/buildflags.mk
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+configure: configure-stamp
+configure-stamp:
+       dh_testdir
+       /usr/bin/perl ./configure --thrflavour= --nothrflavour= --root=/ --prefix=/usr --libdir=lib --project=emi --module px.proxyrenewal
+       touch $@
+
+build: build-arch build-indep
+
+build-arch build-indep: build-stamp
+
+build-stamp: configure-stamp
+       dh_testdir
+       CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" $(MAKE)
+       CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" $(MAKE) check
+       touch $@
+
+clean: configure-stamp
+       dh_testdir
+       dh_testroot
+       rm -f configure-stamp build-stamp
+       $(MAKE) clean
+       rm -f Makefile.inc config.status
+       dh_clean
+
+install: build-stamp
+       dh_testdir
+       dh_testroot
+       dh_prep
+       dh_installdirs
+       $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+       rm -vf $(CURDIR)/debian/tmp/usr/lib/*.la
+       rm -vf $(CURDIR)/debian/tmp/usr/lib/*.a
+       find $(CURDIR)/debian/tmp -name '*' -print | xargs -I {} -i bash -c "chrpath -d {} > /dev/null 2>&1" || echo 'Stripped RPATH'
+       mv $(CURDIR)/debian/tmp/usr/share/doc/glite-px-proxyrenewal-@MAJOR@.@MINOR@.@REVISION@ $(CURDIR)/debian/tmp/usr/share/doc/glite-px-proxyrenewal
+       (cd $(CURDIR)/debian/tmp/usr/share/doc/glite-px-proxyrenewal; \
+        rm -fv ChangeLog LICENSE; \
+        cat $(CURDIR)/project/ChangeLog | gzip -9 > changelog.gz)
+
+binary-indep:
+
+binary-arch: install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs
+       dh_installdocs
+       dh_installexamples
+       dh_installman
+       dh_installlogrotate
+       dh_installinit --onlyscripts --no-start --name=glite-proxy-renewald
+       dh_installcron
+       dh_install --fail-missing
+       dh_link
+       dh_strip --dbg-package=glite-px-proxyrenewal-dbg
+       dh_compress
+       dh_fixperms
+       dh_makeshlibs
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-arch binary-indep
 
-Summary: Virtual package for development with gLite proxyrenewal library
+Summary: Virtual package with runtime and development files of gLite proxyrenewal
 Name: glite-px-proxyrenewal
 Version: @MAJOR@.@MINOR@.@REVISION@
 Release: @AGE@%{?dist}
 
 %description
 This is a virtual package providing runtime and development files for gLite
-proxyrenewal library.
+proxyrenewal.
 
 
 %package libs
 
 
 %package clients
-Summary: Daemon and client program for gLite proxyrenewal
+Summary: gLite proxyrenewal daemon and client
 Group: System Environment/Base
 
 
 %description clients
-This package contains daemon and client program for gLite proxyrenewal.
+This package contains daemon and client program of gLite proxyrenewal.
 
 
 %prep