[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with mod-perl packaging



My email provider doesn't seem to have the option of wrapping lines, so please bear with me.

That's odd that the attachment didn't come through.  I will paste it below so this might be a rather long email :->

Thank you for any advice!

Maria

###################################
# <mod-perl-1.27/debian/rules>
###################################
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This is the debhelper compatibility version to use.
# export DH_COMPAT=3

PERL := /usr/bin/perl
TMP=`pwd`/debian/tmp

# We're using /usr/local/src/build/apache-1.3.27/ as the apache source
export APACHE_SRC=/usr/local/src/build/apache-1.3.27/src

build: build-stamp
build-stamp:
        dh_testdir

        # Add here commands to compile the package.
        $(PERL)  Makefile.PL USE_APACI=1 EVERYTHING=1 DO_HTTPD=1 SSL_BASE=/usr \
        APACHE_PREFIX=/usr/local/www APACHE_SRC=$(APACHE_SRC) \
        APACI_ARGS='--enable-module=ssl'

        $(MAKE) OPTIMIZE="-O2 -g -Wall"

        touch build-stamp

clean:
        dh_testdir
        rm -f build-stamp

        # Add here commands to clean up after the build process.
        # -$(MAKE) clean

        dh_clean

        find . -name .tmp.\* -exec rm -rf {} \;
        # ([ -f Makefile ] && touch Makefile && $(MAKE) distclean) || true
        chmod -R u+w .

install: build
         dh_testdir
         dh_testroot
         dh_clean -k
         dh_installdirs

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

# Build architecture-independent files here.
# binary-indep: build install
# We have nothing to do by default.
binary-indep: build install
        dh_testdir
        dh_testroot
        dh_clean -k
        dh_installdirs

        # $(MAKE) PREFIX=`pwd`/debian/tmp/usr
        # find `pwd`/debian/mod-perl \( -name .packlist -o -name perllocal.pod \) -exec rm -f '{}' \;
        # find `pwd`/debian/mod-perl -type d -print0 | xargs -0 \
        --no-run-if-empty rmdir -p --ignore-fail-on-non-empty
        dh_installdocs
        # find `pwd`/debian/mod-perl -type f \( -name \*.pm -o -name \*.pl \) \
        -exec chmod a-x '{}' \;
        # find `pwd`/debian/mod-perl -type f -name .cvsignore -exec rm '{}' ';'
        # find `pwd`/debian/mod-perl -type f -name mod_perl.exp -exec rm '{}' ';'

        # dh_installchangelogs Changes
        # dh_link
        dh_strip
        dh_compress
        dh_fixperms
        dh_makeshlibs
        dh_installdeb
        dh_perl
        dh_shlibdeps
        dh_gencontrol
        dh_md5sums
        dh_builddeb

# Build architecture-dependent files here.
# binary-arch: build install
binary-arch: build

binary: binary-indep binary-arch
# .PHONY: build clean binary-indep binary-arch binary install configure
.PHONY: build clean binary-indep binary-arch binary

###################################
# </mod-perl-1.27/debian/rules>
###################################
--
Support your local ASPCA
http://www.aspca.org/

_____________________________________________________________
Get YourName@gatormail.ws email Today!
Visit http://www.gatormail.ws/

_____________________________________________________________
Select your own custom email address for FREE! Get you@yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
--- Begin Message ---
[Please wrap your lines!  It makes it much easier to read, and thus more
likely that you'll get a response.  Anywhere between 70 and 80 is
acceptable; 72 seems to be a nice value.]

On Wed, Apr 09, 2003 at 04:37:52PM -0700, Maria Rodriguez wrote:
> Hello,
> 
> I am just becoming familiar with the package creating process and have
> decided to "debianize" my apache installations.  I have built my
> apaches for years from source and am getting stuck in the final stages
> of the process.
> 
> It appears that it is getting through the 'make' process, but the
> 'make install' is where it seems to run into problems.  The
> dh_builddeb is hit and it does build a package, but it consists of
> just an empty /usr/share/doc/mod-perl directory.  Here's an "ls -R" of
> my debian/mod-perl directory:
> 
> debian/mod-perl: DEBIAN/  usr/
> 
> debian/mod-perl/DEBIAN: control  postinst*  prerm*
> 
> debian/mod-perl/usr: bin/  share/
> 
> debian/mod-perl/usr/bin:
> 
> debian/mod-perl/usr/share: doc/
> 
> debian/mod-perl/usr/share/doc: mod-perl/
> 
> debian/mod-perl/usr/share/doc/mod-perl:
> 
> I have attached my "rules" file, so if anyone could be so kind as to
> tell me where I'm going wrong, I would be very appreciative.

Heh, no you didn't.  Without seeing it, I bet you haven't told apache's
build system to dump the files into debian/mod-perl/.  Setting
$(DESTDIR) is usually the way to go.

I'd try on the debian-mentors, list, too, you're more likely to get a
good answer.

-- 
Rob Weir <rweir@ertius.org>                              http://www.ertius.org/
GPG keys: 1024D/1E73B7CD, 4096R/3ABDE5EC     |      Do I look like I want a CC?
Words of the day:    Roswell Ruby Ridge nuclear Sarin nerve gas Pine Gap Centro

Attachment: pgpa6MtNiMGKR.pgp
Description: PGP signature


--- End Message ---

Reply to: