# Note: It's not really version 2.0.1rc3. We made a last minute change and kept # the version at 2.0.0rc3. The numbering can be fixed when we upgrade it to # 2.1.0, which is the latest at the time of this writing. NAME = mod_auth_tkt VERSION = 2.0.0rc3 NEW_VERSION = 2.0.4rc3 ifdef ROOT DESTDIR=${ROOT} ROOT = "" endif ifndef DESTDIR DESTDIR = / endif GENERATED = ${NAME}-${VERSION} all: ${GENERATED} install: @echo "This is only called from Solaris mksolpkg" cd ${NAME}-${VERSION} && $(MAKE) install DESTDIR=${DESTDIR} APXS=/opt/csw/apache2/sbin/apxs authtkt: ${NAME}-${VERSION} ${NAME}-${VERSION}: tar xzf ${NAME}-${VERSION}.tar.gz cd ${NAME}-${VERSION} && patch -p0 < ../patches/authtkt.makefile_accept_destdir.patch cd ${NAME}-${VERSION} && patch -p0 < ../patches/authtkt.sso-headers.patch if [ `uname -s` = SunOS ] ; then \ cd ${NAME}-${VERSION} && patch -p0 < ../patches/authtkt.solaris.patch; \ fi cd ${NAME}-${VERSION} && patch -p1 < ../patches/authtkt.load_module_for_rpm.patch # Creates the .deb and moves up a level for the overall Makefile to find debpkg: ${NAME}-${VERSION} cd ${NAME}-${VERSION} && rm -f debian && ln -sf ../debian.authtkt debian cd ${NAME}-${VERSION} && cp debian/changelog.in debian/changelog cd ${NAME}-${VERSION} && dch --newversion="${NEW_VERSION}-1`lsb_release -cs`1" "Automatic buildbot build" cd ${NAME}-${VERSION} && dpkg-buildpackage -I.svn -i.svn -rfakeroot -uc -us mv libapache2-mod-auth-tkt-prefork*${NEW_VERSION}* .. # The .spec file is the one from the original source, modified with NEW_VERSION. rpmpkg: ${NAME}-${VERSION} mv ${NAME}-${VERSION} ${NAME}-${NEW_VERSION} cp ${NAME}.spec ${NAME}-${NEW_VERSION} tar czf ${NAME}-${NEW_VERSION}.tar.gz ${NAME}-${NEW_VERSION} rpmbuild -tb --define "_topdir ${WORKDIR}" ${NAME}-${NEW_VERSION}.tar.gz rm $(WORKDIR)/RPMS/*/mod_auth_tkt_opsview-debuginfo-*.rpm || true # Hacked get_version, because authtkt is versioned differently solpkg: perl -i -pe 's/%VERSION%/${NEW_VERSION}/g' solaris_pkg/get_version mksolpkg -b clean: rm -fr ${GENERATED} ${NAME}-${VERSION}/ ${NAME}-${NEW_VERSION}/ ${NAME}-${NEW_VERSION}.tar.gz