Changeset 760 for server/fedora/Makefile


Ignore:
Timestamp:
Jun 3, 2008, 1:21:05 PM (14 years ago)
Author:
presbrey
Message:
Update build system for Fedora 9
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/fedora/Makefile

    r750 r760  
    5858
    5959download:
    60         -@wget -O- -nv $(server_url)/$(server_arch) | wget -i- -nv -N -B $(server_url)/ -nd -nH -P $(dload);
     60        @mkdir -p $(dload); \
     61        wget -qO- -nv $(server_url)/$(server_arch) | xargs make
     62
     63%.src.rpm:
     64        wget -q -nv -N -B $(server_url) -nd -nH -P $(dload) $(server_url)/$*.src.rpm
    6165
    6266copy-patches: mkdir-tree
     
    96100        done;
    97101
    98 setup: install-srpms copy-patches copy-specs patch-specs create-tarballs
    99 
    100 # Do not work:
    101 #rpms: setup
    102 #       rpmbuild $(rpm_args) -bb ${tmp_specs}/$(allsrc);
    103 #
    104 #srpms: setup
    105 #       rpmbuild $(rpm_args) -bs ${tmp_specs}/$(allsrc);
     102#setup: install-srpms copy-patches copy-specs patch-specs create-tarballs
     103setup: create-tarballs
    106104
    107105oursrc:
     
    114112        make $(allsrc)
    115113
    116 $(filter %.i386,$(allsrc)): %.i386: setup
     114$(filter %.i386,$(oursrc)): %.i386: setup
    117115        PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" \
    118116        setarch i386 rpmbuild $(rpmbuild_args) --target=i386 --define="_lib lib" -bb ${tmp_specs}/$**.spec
    119117
    120 $(filter-out %.i386,$(allsrc)): %: setup
     118$(filter-out %.i386,$(oursrc)): %: setup
    121119        PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" \
    122         rpmbuild $(rpmbuild_args) -ba ${tmp_specs}/$**.spec
     120        rpmbuild $(rpmbuild_args) -bb ${tmp_specs}/$**.spec
     121
     122$(upstream):
     123        rpmbuild $(rpmbuild_args) --rebuild $(dload)/$@*.src.rpm
    123124
    124125openafs-kernel: setup
     
    128129kernvers = $(shell rpm -q --qf "%{Version}-%{Release}\n" --whatprovides kernel | sort -n | tail -n1)
    129130kvariants = ''
    130 openafs_rpmbuild_args = --define "fedorakmod 1" --define "kvariants $(kvariants)" --define "kernvers $(kernvers)"
     131openafs_rpmbuild_args = --define "fedorakmod 1" --define "kvariants $(kvariants)" --define "kernvers $(kernvers)" --nodeps
    131132openafs: rpmbuild_args += $(openafs_rpmbuild_args)
    132133openafs-kernel: rpmbuild_args += $(openafs_rpmbuild_args) --define "build_userspace 0" --define "build_modules 1"
     
    165166openafs-deps    = pam-devel automake
    166167mit-zephyr-deps = readline-devel hesiod.i386 libXt.i386 #compat-readline43
    167 openssh-deps    = gtk2-devel libX11-devel autoconf automake openssl-devel perl zlib-devel audit-libs-devel util-linux groff man pam-devel tcp_wrappers-devel krb5-devel libselinux-devel audit-libs xauth gobject-devel pango-devel cairo-devel
     168openssh-deps    = gtk2-devel libX11-devel autoconf automake openssl-devel perl zlib-devel audit-libs-devel util-linux groff man pam-devel tcp_wrappers-devel krb5-devel libselinux-devel audit-libs xauth gobject-devel pango-devel cairo-devel libedit-devel
    168169install-deps:
    169170        yum -y install $(basic-deps) $(oursrc-deps) $(httpdmods-deps) $(httpd-deps) $(krb5-deps) $(openafs-deps) $(mit-zephyr-deps) $(openssh-deps)
    170171        rpm -ivh http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/compat-readline43-4.3-3.i386.rpm
     172
     173fedora:
     174        make install-deps
     175        make upstream
     176        rpm -ivh $(out_rpms)/`uname -m`/openafs-devel*.rpm
     177        make oursrc
Note: See TracChangeset for help on using the changeset viewer.