Changeset 796 for server/fedora/Makefile
- Timestamp:
- Aug 6, 2008, 4:53:24 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/fedora/Makefile
r788 r796 19 19 # See /COPYRIGHT in this repository for more information. 20 20 21 upstream = openafs krb5 httpd openssh 21 upstream_yum = krb5 httpd openssh 22 upstream = openafs $(upstream_yum) 22 23 oursrc = execsys tokensys accountadm httpdmods logview sql-signup nss_nonlocal nss_nonlocal.i386 whoisd mit-zephyr 23 24 allsrc = $(upstream) $(oursrc) 24 25 oursrcdir = ${PWD}/../common/oursrc 25 26 patches = ${PWD}/../common/patches 26 metapatches = ${PWD}/meta-patches27 27 specs = ${PWD}/specs 28 28 … … 38 38 server_url = "http://web.mit.edu/scripts/src" 39 39 server_arch = "fedora.stable" 40 openafs_url = "http://dl.openafs.org/dl/openafs/1.4.7/openafs-1.4.7-1.1.1.src.rpm" 40 41 41 42 .PHONY: minimal-clean … … 57 58 ln -sTf $(topdir) rpmbuild 58 59 59 download: 60 download: download_stamp 61 download_stamp: 60 62 @mkdir -p $(dload); \ 61 wget -qO- -nv $(server_url)/$(server_arch) | xargs make 63 #wget -qO- -nv $(server_url)/$(server_arch) | xargs make 64 cd $(dload) && yumdownloader --source $(upstream_yum) 65 wget -P $(dload) $(openafs_url) 66 touch download_stamp 62 67 63 68 %.src.rpm: … … 66 71 copy-patches: mkdir-tree 67 72 @cp $(patches)/*.patch $(tmp_src); \ 68 cd $(tmp_src); \ 69 list=`ls $(metapatches)/*.patch`; \ 70 for i in $$list; do \ 71 patch < $$i; \ 72 done; 73 cd $(tmp_src); 73 74 74 75 install-srpms: mkdir-tree download … … 121 122 122 123 $(upstream): 123 rpmbuild $(rpmbuild_args) - -rebuild $(dload)/$@*.src.rpm124 rpmbuild $(rpmbuild_args) -ba ${tmp_specs}/$@.spec 124 125 125 126 openafs-kernel: setup … … 127 128 rpmbuild $(rpmbuild_args) -bb ${tmp_specs}/openafs*.spec 128 129 129 kernvers = $(shell rpm -q --qf "%{Version}-%{Release}\n" --whatprovides kernel | sort -n | tail -n1) 130 #sort -n sorts "2.6.25-1" later than "2.6.25.1-1", so it's Wrong 131 #kernvers = $(shell rpm -q --qf "%{Version}-%{Release}\n" --whatprovides kernel | sort -n | tail -n1) 132 kernvers = $(shell uname -r | sed "s/\(.*\)[.].*/\1/") 130 133 kvariants = '' 131 134 openafs_rpmbuild_args = --define "fedorakmod 1" --define "kvariants $(kvariants)" --define "kernvers $(kernvers)" --nodeps … … 163 166 httpdmods-deps = httpd-devel 164 167 httpd-deps = xmlto db4-devel expat-devel zlib-devel libselinux-devel apr-devel apr-util-devel pcre-devel openssl-devel distcache-devel 165 krb5-deps = bison ncurses-devel texinfo keyutils-libs-devel 168 krb5-deps = bison ncurses-devel texinfo keyutils-libs-devel texinfo-tex 166 169 openafs-deps = pam-devel automake 167 170 mit-zephyr-deps = readline-devel hesiod-devel hesiod-devel.i386 hesiod.i386 libXt.i386 #compat-readline43
Note: See TracChangeset
for help on using the changeset viewer.