Hi Hannu,

it's me again, sorry for disturbing you so much. :)

As dev pointed out, there is no proper deb creation script yet for OSS. I changed the old one to not create the .deb file with alien, but "proper" (creating various tar archives and after this packaging them into an ar archive).

It's status is still "WORKSFORME" and it lacks user testing, but at least it's building fine on my Gentoo machine. I tried to stick to POSIX compatibly though, so I do not expect many problems... but anyone interesting in using "make deb" is supposed to do it now and post bug reports. :)

I have not included scripts for postrm, prerm, postinst(allation) yet, but I'll write them in the next few days (if not tomorrow.)

Btw, I also included the other changes to the Linux24 and FreeBSD script again which will not let the copying of man pages fail. I just used hg diff using the newest hg revision, I hope that's OK. :)


I hope this helps.

Have a nice evening,


-Ionic


diff -r 4f529d1a6eff setup/FreeBSD/build.sh
--- a/setup/FreeBSD/build.sh	Mon May 19 17:50:58 2008 +0300
+++ b/setup/FreeBSD/build.sh	Mon May 19 20:59:05 2008 +0200
@@ -80,7 +80,7 @@ for i in $SRCDIR/misc/man1m/*.man
 for i in $SRCDIR/misc/man1m/*.man
 do
         N=`basename $i .man`
-        $SRCDIR/setup/txt2man -t "$CMD" -v "OSS System Administration Commands" -s 1 $i > prototype/usr/man/man1/$N.1
+        $SRCDIR/setup/txt2man -t "$CMD" -v "OSS System Administration Commands" -s 1 $i > prototype/usr/share/man/man1/$N.1
 done
 
 rm -f prototype/usr/share/man/man8/ossdetect.8
diff -r 4f529d1a6eff setup/Linux/mkdeb.sh
--- a/setup/Linux/mkdeb.sh	Mon May 19 17:50:58 2008 +0300
+++ b/setup/Linux/mkdeb.sh	Mon May 19 20:59:05 2008 +0200
@@ -2,32 +2,37 @@
 
 VERSION=`sh showversion.sh`
 RELEASE=`cat buildid.dat`
-ARCH=`uname -i`
+ARCH=`uname -m`
 OSSNAME=oss-linux
 
-RPMNAME=$OSSNAME-$VERSION
-PKGNAME=$OSSNAME-$VERSION-$RELEASE.$ARCH
-echo building $RPMNAME.rpm
+DEBNAME=${OSSNAME}-${VERSION}_${RELEASE}_${ARCH}
+echo building $DEBNAME.deb
 
-rm -rf spec $RPMNAME
-mkdir $RPMNAME
-echo "Version: " $VERSION > spec
-echo "Release: " $RELEASE >> spec
-echo "Name: " $OSSNAME >> spec
-cat setup/Linux/spec.tmpl >> spec
-echo "%files" >> spec
-(cd prototype; find . -type f -print | sed 's/^.//g' > /tmp/filelist)
-cat /tmp/filelist >> spec
+mkdir control
+echo "2.0" > debian-binary
+echo "Package: " $OSSNAME > control/control
+echo "Version: " $VERSION_$RELEASE >> control/control
+echo "Section: sound" >> control/control
+echo "Priority: optional" >> control/control
+echo "Architecture: " $ARCH >> control/control
+echo "Maintainer: Hannu Savolainen <[EMAIL PROTECTED]>" >> control/control
+echo "Description: Open Sound System
+ OSS provides libraries and necessary drivers which enable you to play
+  sound files, compose music, use MIDI (only included in the testing
+  releases) and adjust your sound card using various user space programs." >> control/control
+
+(cd prototype; find . -type f -print | sed 's/^.//g' | md5sum > ../control/md5sums)
+(cd prototype; find . -type f -print | sed 's/^.//g' | grep -E "^etc/" > ../control/conffiles)
 rm -rf /tmp/prototype
 cp -af prototype /tmp
-tar zcvf /tmp/oss $RPMNAME
-rpmbuild -bb --define "_sourcedir /tmp" --define "_rpmdir ./" --define '_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' spec
+tar zcvf control.tar.gz control/*
+(cd /tmp/prototype; tar zcvf data.tar.gz ./*)
+mv /tmp/prototype/data.tar.gz .
+
+ar q $DEBNAME.deb control.tar.gz data.tar.gz debian-binary
+
 # Cleanup
-rm -rf /tmp/oss /tmp/filelist $RPMNAME spec
-
-alien --to-deb --scripts --keep-version $OSSNAME*.rpm
-
-rm -f $OSSNAME*.rpm
+rm -rf /tmp/prototype control control.tar.gz data.tar.gz debian-binary
 
 if test -f 4front-private/export_package.sh
 then
diff -r 4f529d1a6eff setup/Linux24/build.sh
--- a/setup/Linux24/build.sh	Mon May 19 17:50:58 2008 +0300
+++ b/setup/Linux24/build.sh	Mon May 19 20:59:05 2008 +0200
@@ -115,7 +115,7 @@ for n in $SRCDIR/misc/man1m/*.man
 for n in $SRCDIR/misc/man1m/*.man
 do
 	N=`basename $n .man`
-	$SRCDIR/setup/txt2man -t "$CMD" -v "OSS System Administration Commands" -s 1 $n |gzip > prototype/usr/man/man1/$N.1.gz
+	$SRCDIR/setup/txt2man -t "$CMD" -v "OSS System Administration Commands" -s 1 $n |gzip > prototype/usr/share/man/man1/$N.1.gz
 done
 
 if ! cp lib/libOSSlib/libOSSlib.so lib/libsalsa/.libs/libsalsa.so.2.0.0 prototype/usr/lib/oss/lib
_______________________________________________
oss-devel mailing list
oss-devel@mailman.opensound.com
http://mailman.opensound.com/mailman/listinfo/oss-devel

Reply via email to