Re: Building a package for a web application

2007-09-25 Thread Chris Lamb
liran tal wrote:

 I've uploaded everything to:
 http://daloradius.sourceforge.net/packages/debpkg/

From a quick glance:

 * daloradius_0.9.3.tar.gz includes the immediate subdirs debian/ and usr/ -
   you should really avoid trying to create a 'native' package.
 * Wrong 'Architecture:' in debian/control
 * Incorrect spacing and indentation of description in debian/control
 * Incorrect punctuation in debian/control
 * Missing Homepage: line in debian/control
 * Missing ITP number from debian/changelog
 * Old debhelper debian/compat compatibility number
 * 'apache' and 'php' as dependencies is probably not what you want
 * Freeradius should probably not be a Suggests:
 * Why does it create a database called 'radius'? Why can't this be the same
   name of your package? Do you have to create it at all?
 * Lots of pointless and incorrect stuff in debian/rules. For example,
   build-stamp ends up in /usr/share/daloradius.
 * Documentation in /usr/share/daloradius (eg. FAQS, etc.)


Regards,

-- 
 Chris Lamb GPG: 0x634F9A20


signature.asc
Description: PGP signature


Re: Building a package for a web application

2007-09-21 Thread liran tal
On 9/20/07, Bernd Zeimetz [EMAIL PROTECTED] wrote:

  I've uploaded the package to this address:
  http://daloradius.sourceforge.net/packages/daloradius-0.9-3/
  which the debian/ directory in there is what interests us.

 why the package? Upload your sources if you want any kind of help.
 (this includes at least the .orig.tar.gz and the diff.gz file of your
 package)

 Also have a look into dbconfig-common if you want to setup a database.


I think I managed to get the debian package to build just fine but it's
probably
better if you can comment on it.

I've uploaded everything to:
http://daloradius.sourceforge.net/packages/debpkg/
It contains the folder I'm using to build the package. The way I do it is cd
to
daloradius-0.9.3 and run dpkg-buildpackage

As for you comment about the source package there is actually nothing
special about it. Like I mentioned before it is a web application software
that is made up of .php and .js files in a directory, that's all.

The exact package files (source or original) can be found in the archive:
http://daloradius.sourceforge.net/packages/debpkg/daloradius_0.9.3.tar.gz
inside the usr/share/daloradius directory. Or fetched from:
http://dfn.dl.sourceforge.net/sourceforge/daloradius/daloradius-0.9-3.tar.gz


Regards,
Liran.


Re: Building a package for a web application

2007-09-20 Thread Bernd Zeimetz
 I've uploaded the package to this address:
 http://daloradius.sourceforge.net/packages/daloradius-0.9-3/
 which the debian/ directory in there is what interests us.

why the package? Upload your sources if you want any kind of help.
(this includes at least the .orig.tar.gz and the diff.gz file of your
package)

Also have a look into dbconfig-common if you want to setup a database.

Cheers,

Bernd

-- 
Bernd Zeimetz
[EMAIL PROTECTED] http://bzed.de/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Building a package for a web application

2007-09-17 Thread liran tal
Dear Mentors and Debian users,

While attempting to run dpkg-buildpackage to create a .deb package of the
current directory
where I'm at I'm receiving the error message:

dpkg-genchanges: failure: cannot read files list file: No such file or
directory

my debian/ directory reads the following files:

-rw-r--r-- 1 liran liran  126 2007-09-16 10:52 changelog
-rw-r--r-- 1 liran liran  526 2007-09-17 01:57 control
-rw-r--r-- 1 liran liran  461 2007-08-22 02:39 copyright
-rw-r--r-- 1 liran liran   17 2007-09-16 10:58 dirs
-rwxr-xr-x 1 liran liran 1432 2007-09-16 09:49 postinst
-rwxr-xr-x 1 liran liran  535 2007-09-16 03:41 postrm
-rwxr-xr-x 1 liran liran  438 2007-09-16 05:11 preinst
-rw-r--r-- 1 liran liran 2410 2007-09-16 09:50 README
-rwxr-xr-x 1 liran liran   23 2007-09-16 20:56 rules
-rw-r--r-- 1 liran liran  336 2007-09-16 09:52 watch


where as the rules file is actually empty (filled with #)

Regards,
Liran.


Re: Building a package for a web application

2007-09-17 Thread David Paleino
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Il giorno Mon, 17 Sep 2007 13:47:18 +0200
liran tal [EMAIL PROTECTED] ha scritto:

 Dear Mentors and Debian users,

Hi,

 
 ...
 
 where as the rules file is actually empty (filled with #)

debian/rules should _NEVER_ be empty. I think the problem is there.

Did you create debian/ by yourself? Was it included in the upstream sources?

 Regards,
 Liran.

Have a nice day,
David

- -- 
 . ''`.  Debian maintainer | http://snipurl.com/gofoxygo/
 : :'  :  Linuxer #334216  |  http://www.hanskalabs.net/
 `. `'`GPG: 1392B174   | http://www.debianizzati.org/
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG7mwQ5qqQFxOSsXQRAm63AKDKeZAC3pnZNKjkXX5hKVxuLjsQLQCfc5ok
UIrlpNex1loZqD/Hwj/MaB4=
=f3Wb
-END PGP SIGNATURE-


Re: Building a package for a web application

2007-09-17 Thread Thibaut Paumard


Le 17 sept. 07 à 13:47, liran tal a écrit :


Dear Mentors and Debian users,


Hi,


[...] where as the rules file is actually empty (filled with #)


Well, your rules file must not be empty! It must be a Makefile, and  
contain the instructions to _build_ the .deb when called with the  
appropriate arguments.


I guess you need to read again http://www.debian.org/doc/maint-guide/  
and basically everything listed in http://www.debian.org/devel/ .


Best regards, Thibaut.



Re: Building a package for a web application

2007-09-17 Thread liran tal
I see.
Well, I did create debian/ myself at first and then use dh_make to consult
with some missing files I might have.

I should note that what I'm packaging is a web application software and so
it has
no need for compilation of any sort but rather just copy the files tree and
run the scripts.

Anyway, so I ran dh_make -e email -s -n and was provided with the debian/
example
directory from which I copied the rules file and commented 2 parts:

# Add here commands to compile the package
# $(MAKE)

and

# Add here commands to install the package into debian/daloradius.
# $(MAKE) DESTDIR=$(CURDIR)/debian/daloradius install

As there is no need for any compilation to be done like I've stated before.
Then I ran dpkg-buildpackage -b again, the output is somewhat long but
results in:

dpkg-deb: building package `daloradius' in `../daloradius_0.9.3_i386.deb'.
 dpkg-genchanges -b
dpkg-genchanges: binary-only upload - not including any source code
 signfile daloradius_0.9.3_i386.changes
gpg: skipped liran [EMAIL PROTECTED]: secret key not available
gpg: [stdin]: clearsign failed: secret key not available

dpkg-buildpackage: binary only upload (no source included)
(WARNING: Failed to sign .changes file)


I'm indeed missing the signature file but I will add this later.
Other than that, is this package ready?


Regards,
Liran.



On 9/17/07, David Paleino [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Il giorno Mon, 17 Sep 2007 13:47:18 +0200
 liran tal [EMAIL PROTECTED] ha scritto:

  Dear Mentors and Debian users,

 Hi,

 
  ...
 
  where as the rules file is actually empty (filled with #)

 debian/rules should _NEVER_ be empty. I think the problem is there.

 Did you create debian/ by yourself? Was it included in the upstream
 sources?

  Regards,
  Liran.

 Have a nice day,
 David

 - --
 . ''`.  Debian maintainer | http://snipurl.com/gofoxygo/
 : :'  :  Linuxer #334216  |  http://www.hanskalabs.net/
 `. `'`GPG: 1392B174   | http://www.debianizzati.org/
`-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)

 iD8DBQFG7mwQ5qqQFxOSsXQRAm63AKDKeZAC3pnZNKjkXX5hKVxuLjsQLQCfc5ok
 UIrlpNex1loZqD/Hwj/MaB4=
 =f3Wb
 -END PGP SIGNATURE-



Re: Building a package for a web application

2007-09-17 Thread David Paleino
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Don't top-quote.

Il giorno Mon, 17 Sep 2007 14:17:16 +0200
liran tal [EMAIL PROTECTED] ha scritto:

 I see.
 Well, I did create debian/ myself at first and then use dh_make to consult
 with some missing files I might have.

 I should note that what I'm packaging is a web application software and so
 it has no need for compilation of any sort but rather just copy the files
 tree and run the scripts.

Yes, but debian/rules is used not only to compile things, but also to create
the .deb properly.

 
 ...
 
 I'm indeed missing the signature file but I will add this later.
 Other than that, is this package ready?

We can't know: upload it somewhere on the network (the upstream source with the
debian/ directory) and someone will take a look and comment.

 Regards,
 Liran.

Kindly,
David

- -- 
 . ''`.  Debian maintainer | http://snipurl.com/gofoxygo/
 : :'  :  Linuxer #334216  |  http://www.hanskalabs.net/
 `. `'`GPG: 1392B174   | http://www.debianizzati.org/
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG7nUb5qqQFxOSsXQRAq+dAKCfUtAYMoOFuOrV2LOekBM3uKECmgCfbRlC
kqEmAUqnEpYh6z27NyGlbt4=
=nky9
-END PGP SIGNATURE-


Re: Building a package for a web application

2007-09-17 Thread Asheesh Laroia

On Mon, 17 Sep 2007, liran tal wrote:


While attempting to run dpkg-buildpackage to create a .deb package of the
current directory
where I'm at I'm receiving the error message:

dpkg-genchanges: failure: cannot read files list file: No such file or
directory

my debian/ directory reads the following files:

-rw-r--r-- 1 liran liran  126 2007-09-16 10:52 changelog
-rw-r--r-- 1 liran liran  526 2007-09-17 01:57 control
-rw-r--r-- 1 liran liran  461 2007-08-22 02:39 copyright
-rw-r--r-- 1 liran liran   17 2007-09-16 10:58 dirs
-rwxr-xr-x 1 liran liran 1432 2007-09-16 09:49 postinst
-rwxr-xr-x 1 liran liran  535 2007-09-16 03:41 postrm
-rwxr-xr-x 1 liran liran  438 2007-09-16 05:11 preinst
-rw-r--r-- 1 liran liran 2410 2007-09-16 09:50 README
-rwxr-xr-x 1 liran liran   23 2007-09-16 20:56 rules
-rw-r--r-- 1 liran liran  336 2007-09-16 09:52 watch


where as the rules file is actually empty (filled with #)


An empty rules file won't get you where you want to go.

Take a look at the debian/rules file for some existing web application; 
there are many in Debian these days.  See if you can find one very similar 
to the one you want to package.


If you're more generally confused, you should check out the New 
Maintainers Guide http://www.debian.org/doc/maint-guide/.


-- Asheesh.

--
You know, Callahan's is a peaceable bar, but if you ask that dog what his
favorite formatter is, and he says roff! roff!, well, I'll just have to...


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Building a package for a web application

2007-09-17 Thread liran tal
On 9/17/07, David Paleino [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

  ...
 
  I'm indeed missing the signature file but I will add this later.
  Other than that, is this package ready?

 We can't know: upload it somewhere on the network (the upstream source
 with the
 debian/ directory) and someone will take a look and comment.



After commenting those $(MAKE) like I said in the previous email it seems
like the build was
successful. I've uploaded the package to this address:
http://daloradius.sourceforge.net/packages/daloradius-0.9-3/
which the debian/ directory in there is what interests us.

After running dpkg-buildpackage -b I have found 2 newly created files in the
outside directory
being: daloradius_0.9.3_i386.changes and daloradius_0.9.3_i386.deb
From memory I believe that the .changes file is required for the tool to
upload it to mentors.debian.net

If the output log from the dpkg-buildpackage is also required, here it is:

dpkg-buildpackage: source package is daloradius
dpkg-buildpackage: source version is 0.9.3
dpkg-buildpackage: source changed by liran [EMAIL PROTECTED]
dpkg-buildpackage: host architecture i386
 debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/usr/bin/make clean
make[1]: Entering directory `/opt/debs/daloradius-0.9.3'
make[1]: *** No rule to make target `clean'.  Stop.
make[1]: Leaving directory `/opt/debs/daloradius-0.9.3'
make: [clean] Error 2 (ignored)
dh_clean
dh_clean: Compatibility levels before 4 are deprecated.
 debian/rules build
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
dh_testdir
# Add here commands to compile the package.
# /usr/bin/make
#docbook-to-man debian/daloradius.sgml  daloradius.1
touch build-stamp
 debian/rules binary
dh_testdir
dh_testroot
dh_clean -k
dh_clean: Compatibility levels before 4 are deprecated.
dh_installdirs
dh_installdirs: Compatibility levels before 4 are deprecated.
# Add here commands to install the package into debian/daloradius.
# /usr/bin/make install DESTDIR=/opt/debs/daloradius-0.9.3/debian/daloradius
dh_testdir
dh_testroot
dh_installchangelogs
dh_installchangelogs: Compatibility levels before 4 are deprecated.
dh_installdocs
dh_installdocs: Compatibility levels before 4 are deprecated.
dh_installexamples
dh_installexamples: Compatibility levels before 4 are deprecated.
dh_installman
dh_installman: Compatibility levels before 4 are deprecated.
dh_link
dh_link: Compatibility levels before 4 are deprecated.
dh_strip
dh_strip: Compatibility levels before 4 are deprecated.
dh_compress
dh_compress: Compatibility levels before 4 are deprecated.
dh_fixperms
dh_fixperms: Compatibility levels before 4 are deprecated.
dh_installdeb
dh_installdeb: Compatibility levels before 4 are deprecated.
dh_shlibdeps
dh_shlibdeps: Compatibility levels before 4 are deprecated.
dh_gencontrol
dh_gencontrol: Compatibility levels before 4 are deprecated.
dh_md5sums
dh_md5sums: Compatibility levels before 4 are deprecated.
dh_builddeb
dh_builddeb: Compatibility levels before 4 are deprecated.
dpkg-deb: building package `daloradius' in `../daloradius_0.9.3_i386.deb'.
 dpkg-genchanges -b
dpkg-genchanges: binary-only upload - not including any source code
dpkg-buildpackage: binary only upload (no source included)



I hope this includes all information...
Thanks,

Liran.