cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: tclcurl debuts in debian ditribution

From: Domenico Andreoli <cavok_at_filibusta.crema.unimi.it>
Date: Sat, 6 Oct 2001 14:14:24 +0200

On Sat, Oct 06, 2001 at 12:27:48AM -0400, Andrés García wrote:
> Hello,
>
hi :)

> > finally tclcurl also made its way into debian distribution,
>
> Thanks, that's very cool.
>
oooh yess

> I don't know much about creating debian packages, is there
> anything I can do in the tarball to make the packaging easier?
>

yes, a couple of things :)

1)
this is to get some support from Makefile in order to let me install stuff
in a different directory than /. this is required to make debian packages.

--- TclCurl-0.8/Makefile.in Sun Jun 3 03:49:22 2001
+++ tclcurl-0.8_deb/Makefile.in Sat Oct 6 14:12:13 2001
@@ -239,13 +239,13 @@
 #========================================================================
 
 install-doc: doc
- $(mkinstalldirs) $(mandir)/mann
- @echo "Installing documentation in $(mandir)"
+ $(mkinstalldirs) $(DESTDIR)$(mandir)/mann
+ @echo "Installing documentation in $(DESTDIR)$(mandir)"
        @for i in $(srcdir)/docs/*.n; \
            do \
            echo "Installing $$i"; \
- rm -f $(mandir)/mann/$$i; \
- $(INSTALL_DATA) $$i $(mandir)/mann ; \
+ rm -f $(DESTDIR)$(mandir)/mann/$$i; \
+ $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \
            done

2)
and this is to get the same support of above from mkIndex.tcl

--- TclCurl-0.8/mkIndex.tcl.in Thu Apr 12 17:53:25 2001
+++ tclcurl-0.8_deb/mkIndex.tcl.in Sat Oct 6 14:12:13 2001
@@ -92,8 +92,10 @@
 set package @PACKAGE@
 set version @VERSION@
 
-cd $libdir
-puts "Making pkgIndex.tcl in [file join [pwd] $package]"
+set DESTDIR $env(DESTDIR)
+
+cd "$DESTDIR$libdir"
+puts "Making pkgIndex.tcl in [file join [pwd] $package$version]"
 
 if {$tcl_platform(platform) == "unix"} {
     if {[llength $libraryList] > 0} {

> Andres
>

cheers
domenico

-----[ Domenico Andreoli, aka cavok
 --[ http://filibusta.crema.unimi.it/~cavok/gpgkey.asc
   ---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50
Received on 2001-10-06