Ignore:
Timestamp:
May 22, 2012, 10:52:35 PM (12 years ago)
Author:
ezyang
Message:
Merge changes from trunk.
Location:
branches/fc17-dev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/fc17-dev

  • branches/fc17-dev/server/fedora/Makefile

    r2066 r2195  
    1919# See /COPYRIGHT in this repository for more information.
    2020
    21 upstream_yum    = krb5 krb5.i686 httpd openssh redland-bindings rubygems
     21upstream_yum    = krb5 krb5.i686 httpd openssh redland-bindings rubygems php
    2222hackage         = MonadCatchIO-mtl-0.3.0.2 cgi-3001.1.8.2 unix-handle-0.0.0
    2323upstream_hackage = ghc-MonadCatchIO-mtl ghc-cgi ghc-unix-handle
    24 upstream        = openafs $(upstream_yum) $(upstream_hackage) moira zephyr zephyr.i686 python-zephyr athena-aclocal discuss
    25 oursrc          = execsys tokensys accountadm httpdmods logview sql-signup nss_nonlocal nss_nonlocal.i686 whoisd athrun php_scripts scripts-wizard scripts-base scripts-static-cat
     24upstream        = openafs $(upstream_yum) $(upstream_hackage) moira zephyr zephyr.i686 python-zephyr python-afs athena-aclocal discuss
     25oursrc          = execsys tokensys accountadm httpdmods logview sql-signup nss_nonlocal nss_nonlocal.i686 whoisd athrun php_scripts scripts-wizard scripts-base scripts-static-cat fuse-better-mousetrapfs
    2626allsrc          = $(upstream) $(oursrc)
    2727oursrcdir       = ${PWD}/../common/oursrc
     
    4848
    4949info:
    50         @echo "The following packages are available:"; \
    51         echo "$(allsrc)"; \
    52         echo "Run 'make all' to build all packages."
     50        @echo "The following packages are available:"
     51        @echo "$(allsrc)"
     52        @echo "Run 'make all' to build all packages."
    5353
    5454minimal-clean:
     
    6060
    6161mkdir-tree:
    62         @rpmdev-setuptree
     62        rpmdev-setuptree
    6363        mkdir -p $(out_sbin)
    6464        ln -sTf $(topdir) rpmbuild
     
    6666download: download_stamp
    6767download_stamp:
    68         @mkdir -p $(dload); \
     68        mkdir -p $(dload)
    6969        #wget -qO- -nv $(server_url)/$(server_arch) | xargs make
    7070        cd $(dload) && yumdownloader --disablerepo=scripts --source $(upstream_yum)
     
    7676        cp -a $(hackage:%=~/.cabal/packages/*/*/*/%.tar.gz) $(tmp_src)
    7777        spectool -g -R $(specs)/python-zephyr.spec
     78        spectool -g -R $(specs)/python-afs.spec
    7879        touch download_stamp
    7980
     
    8586
    8687copy-patches: mkdir-tree
    87         @cp $(patches)/*.patch $(tmp_src); \
    88         cd $(tmp_src);
     88        cp $(patches)/*.patch $(tmp_src)
    8989
    9090install-srpms: mkdir-tree download
    91         rpm $(rpm_args) -i $(dload)/*.src.rpm 2>/dev/null;
     91        rpm $(rpm_args) -i $(dload)/*.src.rpm 2>/dev/null
    9292
    9393copy-specs: mkdir-tree
     
    9696# Remove old .orig files so we're not mislead
    9797patch-specs: install-srpms
    98         @cd ${tmp_specs}; \
     98        @set -ex; \
     99        cd ${tmp_specs}; \
    99100        list=`ls ${specs}/*.spec.patch`; \
    100101        rm -f *.orig; \
     
    106107        for i in $$list2; do \
    107108                base=`basename $$i`; \
     109                [ -e ${tmp_specs}/$$base.spec ] || continue; \
    108110                version=`svnversion ${oursrcdir}/$$i`; \
    109111                version=$${version//:/_}; \
     
    112114                        -e "s/SVNVERSION_TO_UPDATE/$${version}/" \
    113115                ${tmp_specs}/$$base.spec; \
    114         done;
     116        done
    115117
    116118# 1. use the package's Makefile to delete leftover files and run autoconf
    117119# 2. create a tarball (we want it to contain the autoconf output)
    118120tarballs: mkdir-tree
    119         @cd ${oursrcdir}; \
     121        @set -ex; \
     122        cd ${oursrcdir}; \
    120123        list=`find -mindepth 1 -maxdepth 1 -type d | grep -v ".svn"`; \
    121124        for i in $$list; do \
     
    123126                if [ -x ./mrproper ]; then \
    124127                        ./mrproper; \
    125                         autoconf; \
     128                        if [ -e configure.in ] || [ -e configure.ac ]; then \
     129                                autoconf; \
     130                        fi; \
    126131                fi; \
    127132                popd; \
    128133                tar -czf $(tmp_src)/$$i.tar.gz $$i; \
    129         done;
     134        done
    130135
    131136#setup: install-srpms copy-patches copy-specs patch-specs tarballs
     
    177182
    178183frob-openafs:
    179         @if [ ! -d "/etc/openafs/" ]; then \
     184        @set -ex; \
     185        if [ ! -d "/etc/openafs/" ]; then \
    180186        echo "/etc/openafs does not exist"; \
    181187        exit 1; \
Note: See TracChangeset for help on using the changeset viewer.