1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187
|
# $Id: Makefile.am,v 1.28 2007/07/22 01:54:11 mrsam Exp $
#
# Copyright 2003-2006, Double Precision Inc.
#
# See COPYING for distribution information.
#
SUBDIRS=unicode numlib liblock soxwrap md5 sha1 libhmac random128 rfc1035 rfc822 rfc2045 gpglib maildir tcpd curses ldapaddressbook libmail rootcerts cone
sysconf_DATA=cone.dist
cone.dist: cone/cone.dist
cp -f cone/cone.dist cone.dist
noinst_SCRIPTS=cone.sh
BUILT_SOURCES=coneversion
cone.sh: cone/cone.sh
cp -f cone/cone.sh cone.sh
HELPNAME="cone.hlp"
noinst_DATA=help.txt coneversion
help.txt: cone/help.txt
cp -f cone/help.txt help.txt
CLEANFILES=cone.sh cone.dist help.txt
DISTCLEANFILES=coneversion
coneversion:
echo "@VERSION@" | cmp -s - coneversion && exit 0; echo "@VERSION@" >coneversion
AUTOMAKE_OPTIONS=dist-bzip2
HTML2TXT=links -dump -no-numbering
onlinehelp: help.txt
cp help.txt $$HOME/Mail/libmail
install-data-local:
${mkinstalldirs} ${DESTDIR}${pkgdatadir}
${INSTALL} -m 444 help.txt ${DESTDIR}${pkgdatadir}/${HELPNAME}
install-exec-local:
${mkinstalldirs} ${DESTDIR}${libexecdir}
${INSTALL} -m 755 cone/cone ${DESTDIR}${libexecdir}/cone
${mkinstalldirs} ${DESTDIR}${bindir}
${INSTALL} -m 755 cone.sh ${DESTDIR}${bindir}/cone
${INSTALL} -m 755 cone/leaf ${DESTDIR}${bindir}/leaf
${INSTALL} -m 755 libmail/mailtool ${DESTDIR}${bindir}/mailtool
uninstall-local:
rm -f ${DESTDIR}${bindir}/cone
rm -f ${DESTDIR}${bindir}/leaf
rm -f ${DESTDIR}${bindir}/mailtool
rm -f ${DESTDIR}${libexecdir}/cone
rm -f ${DESTDIR}${pkgdatadir}/${HELPNAME}
EXTRA_DIST = cone.spec COPYING COPYING.GPL AUTHORS
dist-hook:
rm -f $(distdir)/NEWS $(distdir)/README $(distdir)/INSTALL
$(HTML2TXT) $(srcdir)/cone/html/index.html >$(distdir)/NEWS
$(HTML2TXT) $(srcdir)/cone/html/README.html >$(distdir)/README
$(HTML2TXT) $(srcdir)/cone/html/INSTALL.html >$(distdir)/INSTALL
# Added by sysconftoolize: $Id: Makefile.am,v 1.28 2007/07/22 01:54:11 mrsam Exp $
# Copyright 2000 Double Precision, Inc. See COPYING for
# distribution information.
# Need to add sysconftoolize to package:
EXTRA_DIST += sysconftool
# NOTE: when using a complex directory hierarchy it is only necessary to
# include sysconftool in the top level directory, and it is not necessary
# to add sysconftool to EXTRA_DIST in subdirectories.
SYSCONFFILES=$(sysconf_DATA)
# SYSCONFFILES should be all of your .dist files, this is a default.
# You can also change install-configure-local target below, instead.
# If -- in a complex directory hierarchy -- a certain subdirectory does not
# need install-configure, leave it defined as an empty rule to prevent
# sysconftoolize from appending another form template to this Makefile.am
install-configure:
@list='$(SUBDIRS)'; for subdir in $$list; do \
( case "$$subdir" in .) continue;; \
*) target=install-configure;; esac ; \
cd $$subdir ; $(MAKE) -$(MAKEFLAGS) install-configure DESTDIR=$(DESTDIR) 2>/dev/null) \
; done ; exit 0
$(MAKE) -$(MAKEFLAGS) install-configure-local DESTDIR=$(DESTDIR)
# Modify the following target as appropriate:
install-configure-local:
@list='$(SYSCONFFILES)'; for file in $$list; do \
file="$(DESTDIR)$(sysconfdir)/$$file" ; \
case "$$file" in *.dist) \
@SYSCONFTOOL@ $$file;; esac ; done
rpm:
$(MAKE) -$(MAKEFLAGS) bump.rpm.release
$(MAKE) -$(MAKEFLAGS) dist
$(MAKE) -$(MAKEFLAGS) dorpm
dorpm:
rm -rf rpm/BUILD/*
rm -f rpm/RPMS/*/*
rm -f rpm/SOURCES/*
rm -f rpm/SPECS/*
rm -f rpm/SRPMS/*
unset MAKEFLAGS ; test ! -f $$HOME/.bashrc || . $$HOME/.bashrc; rpmbuild -ta --clean cone-@VERSION@.tar.bz2
bump.rpm.release: cone.spec
VERSION="x"; \
test -f $(srcdir)/rpm.release && . $(srcdir)/rpm.release; \
NEXT_RELEASE=0; \
test "$$VERSION" = "@VERSION@" && NEXT_RELEASE="$$RELEASE"; \
RELEASE=`expr $$NEXT_RELEASE + 1`; \
echo "VERSION=@VERSION@" >$(srcdir)/rpm.release; \
echo "RELEASE=$$RELEASE" >>$(srcdir)/rpm.release; \
sed 's/^Release: .*/Release: '$$RELEASE'%{?dist}%{cone_release}/' \
<cone.spec >cone.spec.new; \
mv cone.spec.new cone.spec
distrelease:
cd cone/po && make update-po
socksify cvs update
socksify cvs commit
$(MAKE) -$(MAKEFLAGS) distcheck 'DISTCHECK_CONFIGURE_FLAGS=CPPFLAGS="-I /usr/include/ncursesw"'
$(MAKE) -$(MAKEFLAGS) rpm
socksify cvs tag -F cone-latest
$(MAKE) -$(MAKEFLAGS)
$(MAKE) -$(MAKEFLAGS)
rm -f cone.spec
$(MAKE) -$(MAKEFLAGS) cone.spec
$(MAKE) -$(MAKEFLAGS) dist
tagrelease:
socksify cvs tag -F -r cone-latest \
`echo cone-@VERSION@ | tr '.' '-'`
upload-beta:
rm -f @PACKAGE@-@VERSION@.tar.bz2.sig; gpg --detach-sign --default-key mrsam@courier-mta.com @PACKAGE@-@VERSION@.tar.bz2; test -f @PACKAGE@-@VERSION@.tar.bz2.sig || exit 1
socksify ssh courier.sourceforge.net echo @PACKAGE@-@VERSION@.tar.bz2 `ls -l @PACKAGE@-@VERSION@.tar.bz2 | awk ' { print $$5 } '` \>/home/groups/c/co/courier/@PACKAGE@.beta
ssh headache 'cd torrents.courier-mta.org/pub/@PACKAGE@-dev && rm -rf @PACKAGE@-@VERSION@ && mkdir @PACKAGE@-@VERSION@ && echo seeder_args=--max_upload_rate 50 >@PACKAGE@-@VERSION@.info && ls -t | sed 1,6d | xargs rm -rf '
scp @PACKAGE@-@VERSION@.tar.bz2 @PACKAGE@-@VERSION@.tar.bz2.sig headache:torrents.courier-mta.org/pub/@PACKAGE@-dev/@PACKAGE@-@VERSION@
upload-dist:
rm -f @PACKAGE@-@VERSION@.tar.bz2.sig; gpg --detach-sign --default-key mrsam@courier-mta.com @PACKAGE@-@VERSION@.tar.bz2; test -f @PACKAGE@-@VERSION@.tar.bz2.sig || exit 1
socksify cvs tag -F -r cone-latest \
`echo cone-@VERSION@ | tr '.' '-'`
socksify perl -e 'use Net::FTP; $$ftp=Net::FTP->new("upload.sourceforge.net.", Debug => 1, Passive => 1 ) || die; $$ftp->login("anonymous", "anonymous") || die; $$ftp->cwd("/incoming") && $$ftp->binary() && $$ftp->hash(1) && $$ftp->put("@PACKAGE@-@VERSION@.tar.bz2") && $$ftp->put("@PACKAGE@-@VERSION@.tar.bz2.sig") && exit 0; die;'
ssh headache 'cd torrents.courier-mta.org/pub/@PACKAGE@ && rm -rf @PACKAGE@-@VERSION@ && mkdir @PACKAGE@-@VERSION@ && echo seeder_args=--max_upload_rate 50 >@PACKAGE@-@VERSION@.info && ls -t | sed 1,6d | xargs rm -rf '
scp @PACKAGE@-@VERSION@.tar.bz2 @PACKAGE@-@VERSION@.tar.bz2.sig headache:torrents.courier-mta.org/pub/@PACKAGE@/@PACKAGE@-@VERSION@
release-dist:
test -z "$(SFPASSWD)" && exit 1; exit 0
./changelog.pl >changelog.txt
emacs releasenotes.txt
test -f releasenotes.txt || exit 1
socksify ../sftools/release.pl mrsam $(SFPASSWD) courier cone @VERSION@ releasenotes.txt changelog.txt @PACKAGE@-@VERSION@.tar.bz2 @PACKAGE@-@VERSION@.tar.bz2.sig
.PHONY: rpm
pub:
rm -rf tmp
mkdir tmp
set -e; for f in `cd cone/html; ls *.html`; \
do \
xsltproc --nonet $$HOME/www/www.courier-mta.org/xsl/cone.xsl cone/html/$$f >tmp/$$f ; \
done
cp -p cone/html/*.css cone/html/*.gif tmp
rsync -a --exclude .svn --delete-after tmp/. $$HOME/www/www.courier-mta.org/cone
rm -rf tmp
tst:
rm -f valgrind.log*
valgrind --demangle=yes --num-callers=16 --logfile=valgrind.log --leak-check=yes --suppressions=cone.suppress cone/cone 2>/dev/null
# valgrind --demangle=yes --num-callers=8 --logfile=valgrind.log cone/cone -c CONFIG 2>/dev/null
|