From 857e8aa3a24abb8c00ca1f873a14d16f7b7dd633 Mon Sep 17 00:00:00 2001 From: Planet-Lab Support Date: Wed, 21 Apr 2004 20:09:17 +0000 Subject: [PATCH] This commit was manufactured by cvs2svn to create tag 'ALPINA_1_6'. --- .cvsignore | 7 - Makefile | 436 ---------------------------------------------------- Makerules | 196 ----------------------- Patchrules | 33 ---- README | 54 ------- Rules.mk | 196 ----------------------- pup-cvs | 12 -- pup-cvs.pub | 1 - 8 files changed, 935 deletions(-) delete mode 100644 .cvsignore delete mode 100644 Makefile delete mode 100644 Makerules delete mode 100644 Patchrules delete mode 100644 README delete mode 100644 Rules.mk delete mode 100644 pup-cvs delete mode 100644 pup-cvs.pub diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index bdedb621..00000000 --- a/.cvsignore +++ /dev/null @@ -1,7 +0,0 @@ -.cvsps -.rpmmacros -BUILD -RPMS -SOURCES -SPECS -SRPMS diff --git a/Makefile b/Makefile deleted file mode 100644 index 40600ab8..00000000 --- a/Makefile +++ /dev/null @@ -1,436 +0,0 @@ -# -# PlanetLab RPM generation -# -# Copyright (c) 2003 The Trustees of Princeton University (Trustees). -# All Rights Reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. -# -# * Neither the name of the copyright holder nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE TRUSTEES OR -# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -# $Id: Makefile,v 1.29 2004/04/16 19:26:11 mlh-pl_rpm Exp $ -# - -# Default target -all: - -# -# CVSROOT: CVSROOT to use -# INITIAL: CVS tag to use for Source0 tarball -# TAG: CVS tag to patch to -# MODULE: CVS module name to use -# SPEC: RPM spec file template -# RPMFLAGS: Miscellaneous RPM flags -# CVS_RSH: If not ssh -# ALL: default targets -# -# If INITIAL is different than TAG, PatchSets will be generated -# automatically with cvsps(1) to bring Source0 up to TAG. If TAG is -# HEAD, a %{date} variable will be defined in the generated spec -# file. If a Patch: tag in the spec file matches a generated PatchSet -# number, the name of the patch will be as specified. Otherwise, the -# name of the patch will be the PatchSet number. %patch tags in the -# spec file are generated automatically. -# - -# -# kernel -# - -kernel-CVSROOT := pup-pl_kernel@cvs.planet-lab.org:/cvs -kernel-INITIAL := linux-2_4_22 -kernel-TAG := HEAD -kernel-MODULE := linux-2.4 -kernel-SPEC := linux-2.4/scripts/kernel-planetlab.spec -ALL += kernel - -# -# plkmod -# - -plkmod-CVSROOT := pup-silk@cvs.planet-lab.org:/cvs -plkmod-INITIAL := HEAD -plkmod-TAG := HEAD -plkmod-MODULE := sys-v3 -plkmod-SPEC := sys-v3/rpm/plkmod.spec -plkmod-RPMFLAGS = --define "kernelver $(shell rpmquery --queryformat '%{VERSION}-%{RELEASE}\n' --specfile SPECS/$(notdir $(kernel-SPEC)) | head -1)" -ALL += plkmod - -# Build kernel first so we can bootstrap off of its build -plkmod: kernel - -# -# vdk -# - -vdk-CVSROOT := pup-pl_kernel@cvs.planet-lab.org:/cvs -vdk-INITIAL := vdk_918 -vdk-TAG := HEAD -vdk-MODULE := vdk -vdk-SPEC := vdk/vtune_driver.spec -vdk-RPMFLAGS = --define "kernelver $(shell rpmquery --queryformat '%{VERSION}-%{RELEASE}\n' --specfile SPECS/$(notdir $(kernel-SPEC)) | head -1)" -ALL += vdk - -# Build kernel first so we can bootstrap off of its build -vdk: kernel - -# -# ltt -# - -ltt-CVSROOT := pup-pl_kernel@cvs.planet-lab.org:/cvs -ltt-INITIAL := HEAD -ltt-TAG := HEAD -ltt-MODULE := ltt -ltt-SPEC := ltt/ltt.spec -ALL += ltt - -# -# lkcdutils -# - -lkcdutils-CVSROOT := pup-pl_kernel@cvs.planet-lab.org:/cvs -lkcdutils-INITIAL := lkcdutils-4_1 -lkcdutils-TAG := HEAD -lkcdutils-MODULE := lkcdutils -lkcdutils-SPEC := lkcdutils/spec/lkcdutils.spec -ALL += lkcdutils - -# Build kernel first so we can bootstrap off of its build -lkcdutils: kernel - -# -# vserver -# - -vserver-CVSROOT := pup-pl_kernel@cvs.planet-lab.org:/cvs -vserver-INITIAL := vserver-0_29 -vserver-TAG := HEAD -vserver-MODULE := vserver -vserver-SPEC := vserver/vserver.spec -ALL += vserver - -# -# vserver-init -# - -vserver-init-CVSROOT := pup-pl_kernel@cvs.planet-lab.org:/cvs -vserver-init-INITIAL := HEAD -vserver-init-TAG := HEAD -vserver-init-MODULE := vserver-init -vserver-init-SPEC := vserver-init/vserver-init.spec -ALL += vserver-init - -# -# vserver-cache -# - -vserver-cache-CVSROOT := pup-pl_kernel@cvs.planet-lab.org:/cvs -vserver-cache-INITIAL := HEAD -vserver-cache-TAG := HEAD -vserver-cache-MODULE := vserver-cache -vserver-cache-SPEC := vserver-cache/vserver-cache.spec -ALL += vserver-cache - -# -# vserver-quota -# - -vserver-quota-CVSROOT := pup-pl_kernel@cvs.planet-lab.org:/cvs -vserver-quota-INITIAL := HEAD -vserver-quota-TAG := HEAD -vserver-quota-MODULE := vserver-quota -vserver-quota-SPEC := vserver-quota/vserver-quota.spec -ALL += vserver-quota - -# -# vserver-util -# - -vserver-util-CVSROOT := pup-pl_kernel@cvs.planet-lab.org:/cvs -vserver-util-INITIAL := HEAD -vserver-util-TAG := HEAD -vserver-util-MODULE := vserver-util -vserver-util-SPEC := vserver-util/vserver-util-planetlab.spec -ALL += vserver-util - -# -# vr-tools -# - -vr-tools-CVSROOT := pup-pl_kernel@cvs.planet-lab.org:/cvs -vr-tools-INITIAL := HEAD -vr-tools-TAG := HEAD -vr-tools-MODULE := vr-tools -vr-tools-SPEC := vr-tools/vr-tools.spec -ALL += vr-tools - -# -# vsh -# - -vsh-CVSROOT := pup-pl_kernel@cvs.planet-lab.org:/cvs -vsh-INITIAL := bash-2_05 -vsh-TAG := HEAD -vsh-MODULE := vsh -vsh-SPEC := vsh/vsh-planetlab.spec -ALL += vsh - -# Build kernel first so we can bootstrap off of its build -vsh: kernel - -# -# e2fsprogs -# - -e2fsprogs-CVSROOT := pup-pl_kernel@cvs.planet-lab.org:/cvs -e2fsprogs-INITIAL := e2fsprogs-1_33 -e2fsprogs-TAG := HEAD -e2fsprogs-MODULE := e2fsprogs -e2fsprogs-SPEC := e2fsprogs/e2fsprogs.spec -ALL += e2fsprogs - -# -# initscripts -# - -initscripts-CVSROOT := pup-node_pkgs@cvs.planet-lab.org:/cvs -initscripts-INITIAL := initscripts-7_14 -initscripts-TAG := HEAD -initscripts-MODULE := initscripts -initscripts-SPEC := initscripts/initscripts.spec -ALL += initscripts - -# -# cq-tools -# - -cq-tools-CVSROOT := pup-node_pkgs@cvs.planet-lab.org:/cvs -cq-tools-INITIAL := HEAD -cq-tools-TAG := HEAD -cq-tools-MODULE := cq-tools -cq-tools-SPEC := cq-tools/cq-tools.spec -ALL += cq-tools - -# -# yum -# - -yum-CVSROOT := pup-node_pkgs@cvs.planet-lab.org:/cvs -yum-INITIAL := YUM_2_0_3 -yum-TAG := HEAD -yum-MODULE := yum -yum-SPEC := yum/yum.spec -ALL += yum - -# -# ksymoops -# - -ksymoops-CVSROOT := pup-pl_kernel@cvs.planet-lab.org:/cvs -ksymoops-INITIAL := ksymoops-2_4_9 -ksymoops-TAG := HEAD -ksymoops-MODULE := ksymoops -ksymoops-SPEC := ksymoops/ksymoops.spec -ALL += ksymoops - -# -# PlanetLabAccounts -# - -PlanetLabAccounts-CVSROOT := pup-node_pkgs@cvs.planet-lab.org:/cvs -PlanetLabAccounts-INITIAL := HEAD -PlanetLabAccounts-TAG := HEAD -PlanetLabAccounts-MODULE := PlanetLabAccounts -PlanetLabAccounts-SPEC := PlanetLabAccounts/PlanetLabAccounts.spec -ALL += PlanetLabAccounts - -# -# MAKEDEV -# - -MAKEDEV-CVSROOT := pup-node_pkgs@cvs.planet-lab.org:/cvs -MAKEDEV-INITIAL := MAKEDEV_3_2_2 -MAKEDEV-TAG := HEAD -MAKEDEV-MODULE := MAKEDEV -MAKEDEV-SPEC := MAKEDEV/MAKEDEV.spec -ALL += MAKEDEV - -# -# NodeUpdate -# - -NodeUpdate-CVSROOT := pup-node_pkgs@cvs.planet-lab.org:/cvs -NodeUpdate-INITIAL := HEAD -NodeUpdate-TAG := HEAD -NodeUpdate-MODULE := NodeUpdate -NodeUpdate-SPEC := NodeUpdate/NodeUpdate.spec -ALL += NodeUpdate - -# -# PlanetLabConf -# - -PlanetLabConf-CVSROOT := pup-node_pkgs@cvs.planet-lab.org:/cvs -PlanetLabConf-INITIAL := HEAD -PlanetLabConf-TAG := HEAD -PlanetLabConf-MODULE := PlanetLabConf -PlanetLabConf-SPEC := PlanetLabConf/PlanetLabConf.spec -ALL += PlanetLabConf - -# -# PlanetLabKeys -# - -PlanetLabKeys-CVSROOT := pup-node_pkgs@cvs.planet-lab.org:/cvs -PlanetLabKeys-INITIAL := HEAD -PlanetLabKeys-TAG := HEAD -PlanetLabKeys-MODULE := PlanetLabKeys -PlanetLabKeys-SPEC := PlanetLabKeys/PlanetLabKeys.spec -ALL += PlanetLabKeys - -# -# BWLimit -# - -BWLimit-CVSROOT := pup-node_pkgs@cvs.planet-lab.org:/cvs -BWLimit-INITIAL := HEAD -BWLimit-TAG := HEAD -BWLimit-MODULE := BWLimit -BWLimit-SPEC := BWLimit/BWLimit.spec -ALL += BWLimit - -# -# perl-IO-Stty -# - -perl-IO-Stty-CVSROOT := pup-node_pkgs@cvs.planet-lab.org:/cvs -perl-IO-Stty-INITIAL := PERL-IO-STTY_0_2 -perl-IO-Stty-TAG := HEAD -perl-IO-Stty-MODULE := perl-IO-Stty -perl-IO-Stty-SPEC := perl-IO-Stty/perl-IO-Stty.spec -ALL += perl-IO-Stty - -# -# ipod -# - -ipod-CVSROOT := pup-node_pkgs@cvs.planet-lab.org:/cvs -ipod-INITIAL := HEAD -ipod-TAG := HEAD -ipod-MODULE := ipod -ipod-SPEC := ipod/ipod.spec -ALL += ipod - -# -# sudo -# - -sudo-CVSROOT := pup-node_pkgs@cvs.planet-lab.org:/cvs -sudo-INITIAL := HEAD -sudo-TAG := HEAD -sudo-MODULE := sudo -sudo-SPEC := sudo/planetlab_sudo.spec -ALL += sudo - -# -# blacklist -# - -blacklist-CVSROOT := pup-node_pkgs@cvs.planet-lab.org:/cvs -blacklist-INITIAL := HEAD -blacklist-TAG := HEAD -blacklist-MODULE := blacklist -blacklist-SPEC := blacklist/PlanetLab-blacklist.spec -ALL += blacklist - -# -# httpd -# - -httpd-CVSROOT := pup-node_pkgs@cvs.planet-lab.org:/cvs -httpd-INITIAL := HEAD -httpd-TAG := HEAD -httpd-MODULE := httpd -httpd-SPEC := httpd/httpd.spec -ALL += httpd - -# -# BootServerRequest -# - -BootServerRequest-CVSROOT := pup-node_pkgs@cvs.planet-lab.org:/cvs -BootServerRequest-INITIAL := HEAD -BootServerRequest-TAG := HEAD -BootServerRequest-MODULE := BootServerRequest -BootServerRequest-SPEC := BootServerRequest/PLBootServerRequest.spec -ALL += BootServerRequest - -# -# PlanetLabID -# - -PlanetLabID-CVSROOT := pup-node_pkgs@cvs.planet-lab.org:/cvs -PlanetLabID-INITIAL := HEAD -PlanetLabID-TAG := HEAD -PlanetLabID-MODULE := PlanetLabID -PlanetLabID-SPEC := PlanetLabID/PlanetLabID.spec -ALL += PlanetLabID - -ifeq ($(findstring $(package),$(ALL)),) - -# Build all packages -all: $(ALL) - -# Recurse -$(ALL): - $(MAKE) package=$@ - -# Remove files generated by this package -$(foreach package,$(ALL),$(package)-clean): %-clean: - $(MAKE) package=$* clean - -# Remove all generated files -clean: - rm -rf BUILD RPMS SOURCES SPECS SRPMS .rpmmacros .cvsps - -.PHONY: all $(ALL) $(foreach package,$(ALL),$(package)-clean) clean - -else - -# Define variables for Makerules -CVSROOT := $($(package)-CVSROOT) -INITIAL := $($(package)-INITIAL) -TAG := $($(package)-TAG) -MODULE := $($(package)-MODULE) -SPEC := $($(package)-SPEC) -RPMFLAGS := $($(package)-RPMFLAGS) -CVS_RSH := $(if $($(package)-CVS_RSH),$($(package)-CVS_RSH),ssh) - -include Makerules - -endif diff --git a/Makerules b/Makerules deleted file mode 100644 index 8f4f7e12..00000000 --- a/Makerules +++ /dev/null @@ -1,196 +0,0 @@ -# -# PlanetLab RPM generation -# -# Copyright (c) 2003 The Trustees of Princeton University (Trustees). -# All Rights Reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. -# -# * Neither the name of the copyright holder nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE TRUSTEES OR -# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -# $Id: Makerules,v 1.6 2004/04/12 19:56:02 mlh-pl_rpm Exp $ -# - -# Base cvsps and rpmbuild in the current directory -export HOME := $(shell pwd) -export CVSROOT CVS_RSH - -# -# Parse spec file template -# - -MK := SPECS/$(patsubst %.spec,%.mk,$(notdir $(SPEC))) - -$(MK): SPECS/$(notdir $(SPEC)).in - # Substitute '$' for '%' and 'name := value' for '%define name value' or 'name: value' - sed -n \ - -e 's/%{/$${/g' \ - -e 's/^%define[ ]*\([^ ]*\)[ ]*\([^ ]*\)/\1 := \2/p' \ - -e 's/^\([^ ]*\):[ ]*\([^ ]*\)/\1 := \2/p' \ - $< > $@ -ifneq ($(INITIAL),$(TAG)) - # Get list of PatchSets - cvsps --cvs-direct --root $(CVSROOT) -r $(INITIAL) $(if $(TAG:HEAD=),-r $(TAG)) $(MODULE) | \ - sed -ne 's|^PatchSet[ ]*\([0-9]*\)|PATCHES += \1|p' >> $@ -ifeq ($(shell echo $(MAKE_VERSION) | awk '{ print ($$1 < 3.80) }'),1) - # make-3.80 can use $(eval) instead (see below) - cvsps --cvs-direct --root $(CVSROOT) -r $(INITIAL) $(if $(TAG:HEAD=),-r $(TAG)) $(MODULE) | \ - sh Patchrules >> $@ -endif -endif - -SPECS/$(notdir $(SPEC)).in: - mkdir -p SPECS - cvs -d $(CVSROOT) checkout -r $(TAG) -p $(SPEC) > $@ - -include $(MK) - -# -# Generate tarball -# - -# Get rid of URL -Source0 := $(notdir $(if $(Source),$(Source),$(Source0))) - -# Add tarball to the list of sources -SOURCES += SOURCES/$(Source0) - -# Get rid of .tar.bz2 or .tar.gz or .tgz -Base0 := $(basename $(basename $(Source0))) - -# Export module -SOURCES/$(Base0): - mkdir -p SOURCES - cd SOURCES && cvs -d $(CVSROOT) export -r $(INITIAL) -d $(Base0) $(MODULE) - -.SECONDARY: $(SOURCES)/$(Base0) - -# Generate tarball -SOURCES/$(Base0).tar.bz2: SOURCES/$(Base0) - tar cpjf $@ -C SOURCES $(Base0) - -SOURCES/$(Base0).tar.gz SOURCES/$(Base0).tgz: SOURCES/$(Base0) - tar cpzf $@ -C SOURCES $(Base0) - -SOURCES/$(Base0).tar: SOURCES/$(Base0) - tar cpf $@ -C SOURCES $(Base0) - -# -# Generate patches -# - -define PATCH_template - -# In case the spec file did not explicitly list the PatchSet -ifeq ($$(origin Patch$(1)),undefined) -Patch$(1) := $$(package)-$(1).patch.bz2 -endif - -# Get rid of URL -Patch$(1) := $$(notdir $$(Patch$(1))) - -# Add patch to the list of sources -SOURCES += SOURCES/$$(Patch$(1)) - -# Generate uncompressed patch -SOURCES/$$(patsubst %.gz,%,$$(patsubst %.bz2,%,$$(Patch$(1)))): - mkdir -p SOURCES - cvsps --cvs-direct --root $$(CVSROOT) -g -s $(1) $$(MODULE) > $$@ - -endef - -# bzip2 -%.bz2: % - bzip2 -c $< > $@ - -# gzip -%.gz: % - gzip -c $< > $@ - -# Generate rules to generate patches (make-3.80 and above expands this) -$(foreach n,$(PATCHES),$(eval $(call PATCH_template,$(n)))) - -# -# Generate spec file -# - -ifeq ($(TAG),HEAD) -# Define date for untagged builds -DATE := $(shell date +%Y.%m.%d) -endif - -# Generate spec file -SPECS/$(notdir $(SPEC)): SPECS/$(notdir $(SPEC)).in - rm -f $@ -ifeq ($(TAG),HEAD) - # Define date for untagged builds - echo "%define date $(DATE)" >> $@ -endif - # Rewrite patch sections of spec file - perl -n -e ' \ - next if /^Patch.*/; \ - next if /^%patch.*/; \ - print; \ - if (/^Source.*/) { $(foreach n,$(PATCHES),print "Patch$(n): $(Patch$(n))\n";) } \ - if (/^%setup.*/) { $(foreach n,$(PATCHES),print "%patch$(n) -p1\n";) } \ - ' $< >> $@ - -# -# Build -# - -RPMFLAGS += $(if $(DATE),--define "date $(DATE)") -NVR := $(shell rpmquery $(RPMFLAGS) --specfile SPECS/$(notdir $(SPEC)).in 2>/dev/null | head -1) -ARCH := $(shell rpmquery $(RPMFLAGS) --queryformat '%{ARCH}\n' --specfile SPECS/$(notdir $(SPEC)).in 2>/dev/null | head -1) - -all: RPMS/$(ARCH)/$(NVR).$(ARCH).rpm SRPMS/$(NVR).src.rpm - -# Build RPM -RPMS/$(ARCH)/$(NVR).$(ARCH).rpm: SPECS/$(notdir $(SPEC)) $(SOURCES) .rpmmacros - mkdir -p BUILD RPMS - rpmbuild $(RPMFLAGS) -bb $< - -# Build SRPM -SRPMS/$(NVR).src.rpm: SPECS/$(notdir $(SPEC)) $(SOURCES) .rpmmacros - mkdir -p SRPMS - rpmbuild $(RPMFLAGS) -bs $< - -# Base rpmbuild in the current directory -.rpmmacros: - echo "%_topdir $(HOME)" > $@ - -# Remove files generated by this package -clean: - rm -rf \ - BUILD/$(Base0) \ - RPMS/$(ARCH)/$(NVR).$(ARCH).rpm \ - SOURCES/$(Base0)* SOURCES/$(package)* \ - SPECS/$(notdir $(SPEC)).in SPECS/$(notdir $(SPEC)) $(MK) \ - SRPMS/$(NVR).src.rpm \ - .cvsps/$(subst /,#,$(CVSROOT)/$(MODULE)) - -.PHONY: all clean diff --git a/Patchrules b/Patchrules deleted file mode 100644 index 46629460..00000000 --- a/Patchrules +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh -# -# Hack to generate patch rules for make < 3.80 -# -# Copyright (c) 2003 The Trustees of Princeton University (Trustees). -# -# $Id: Patchrules,v 1.2 2004/04/09 19:37:19 alk-pl_rpm Exp $ -# - -while read PatchSet n ; do - -[ "$PatchSet" != "PatchSet" ] && continue; - -cat < \$@ -EOF - -done diff --git a/README b/README deleted file mode 100644 index 21d3982d..00000000 --- a/README +++ /dev/null @@ -1,54 +0,0 @@ -Copyright (c) 2003 The Trustees of Princeton University (Trustees). - -$Id: README,v 1.2 2004/04/14 21:22:09 mlh-pl_rpm Exp $ - -Here are some general guidelines for writing spec files. - -* RPM does not allow you to use dashes in version or release - numbers. Use dots, or nothing. - -* Most versions of RPM poorly handle version and release numbers that - do not begin with a number. Start your version and release number with - at least one number. Append as many minor numbers as you want, but - leave alphabetic characters at the end of the string. - -* Always define BuildRoot based in %{_tmppath}. - -* In the %install step, always install files based in $RPM_BUILD_ROOT. - -* Don't be overly restrictive with Requires or BuildRequires tags. RPM - is already pretty smart about analyzing your package for necessary - dependencies. Usually, you only need to specify Requires tags to make - sure a set of packages get installed in the right order (if there is - one). Otherwise, it's likely your users will end up in awful - situations requiring manual bootstrap. - -Here are some specific guidelines for writing spec files for this setup. - -* Write your spec file as you would normally. It should be an - operational spec file on its own. - -* Explicitly %define %{name}, %{version}, %{release}, or don't use - them. You should do this anyway to support older versions of RPM. This - Makefile does not implicitly define these variables (based on the - Name:, Version:, and Release: tags) as RPM does. - -* Run cvsps(1) manually on your repository, and synchronize the PatchSet - numbers with any Patch: tags in your spec file that you would like - explicitly named. - -* This Makefile assumes that the build directory (as specified by the -n - option to %setup, or the RPM default %{name}-%{version}) is the - basename of the Source file (i.e. without .tar[.gz|.bz2]). - -* Add %{?date:.%{date}} to your %{release} tag. When executed, this - Makefile will define the variable to be the current date in YYYY.MM.DD - form. This will help automated nightly upgrades. Tagged releases will - not define this variable. - -* Unless you have a very good reason not to, use the following tags: - -Vendor: PlanetLab -Packager: PlanetLab Central -Distribution: PlanetLab 2.0 -URL: http://www.planet-lab.org diff --git a/Rules.mk b/Rules.mk deleted file mode 100644 index 8f4f7e12..00000000 --- a/Rules.mk +++ /dev/null @@ -1,196 +0,0 @@ -# -# PlanetLab RPM generation -# -# Copyright (c) 2003 The Trustees of Princeton University (Trustees). -# All Rights Reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. -# -# * Neither the name of the copyright holder nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE TRUSTEES OR -# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -# $Id: Makerules,v 1.6 2004/04/12 19:56:02 mlh-pl_rpm Exp $ -# - -# Base cvsps and rpmbuild in the current directory -export HOME := $(shell pwd) -export CVSROOT CVS_RSH - -# -# Parse spec file template -# - -MK := SPECS/$(patsubst %.spec,%.mk,$(notdir $(SPEC))) - -$(MK): SPECS/$(notdir $(SPEC)).in - # Substitute '$' for '%' and 'name := value' for '%define name value' or 'name: value' - sed -n \ - -e 's/%{/$${/g' \ - -e 's/^%define[ ]*\([^ ]*\)[ ]*\([^ ]*\)/\1 := \2/p' \ - -e 's/^\([^ ]*\):[ ]*\([^ ]*\)/\1 := \2/p' \ - $< > $@ -ifneq ($(INITIAL),$(TAG)) - # Get list of PatchSets - cvsps --cvs-direct --root $(CVSROOT) -r $(INITIAL) $(if $(TAG:HEAD=),-r $(TAG)) $(MODULE) | \ - sed -ne 's|^PatchSet[ ]*\([0-9]*\)|PATCHES += \1|p' >> $@ -ifeq ($(shell echo $(MAKE_VERSION) | awk '{ print ($$1 < 3.80) }'),1) - # make-3.80 can use $(eval) instead (see below) - cvsps --cvs-direct --root $(CVSROOT) -r $(INITIAL) $(if $(TAG:HEAD=),-r $(TAG)) $(MODULE) | \ - sh Patchrules >> $@ -endif -endif - -SPECS/$(notdir $(SPEC)).in: - mkdir -p SPECS - cvs -d $(CVSROOT) checkout -r $(TAG) -p $(SPEC) > $@ - -include $(MK) - -# -# Generate tarball -# - -# Get rid of URL -Source0 := $(notdir $(if $(Source),$(Source),$(Source0))) - -# Add tarball to the list of sources -SOURCES += SOURCES/$(Source0) - -# Get rid of .tar.bz2 or .tar.gz or .tgz -Base0 := $(basename $(basename $(Source0))) - -# Export module -SOURCES/$(Base0): - mkdir -p SOURCES - cd SOURCES && cvs -d $(CVSROOT) export -r $(INITIAL) -d $(Base0) $(MODULE) - -.SECONDARY: $(SOURCES)/$(Base0) - -# Generate tarball -SOURCES/$(Base0).tar.bz2: SOURCES/$(Base0) - tar cpjf $@ -C SOURCES $(Base0) - -SOURCES/$(Base0).tar.gz SOURCES/$(Base0).tgz: SOURCES/$(Base0) - tar cpzf $@ -C SOURCES $(Base0) - -SOURCES/$(Base0).tar: SOURCES/$(Base0) - tar cpf $@ -C SOURCES $(Base0) - -# -# Generate patches -# - -define PATCH_template - -# In case the spec file did not explicitly list the PatchSet -ifeq ($$(origin Patch$(1)),undefined) -Patch$(1) := $$(package)-$(1).patch.bz2 -endif - -# Get rid of URL -Patch$(1) := $$(notdir $$(Patch$(1))) - -# Add patch to the list of sources -SOURCES += SOURCES/$$(Patch$(1)) - -# Generate uncompressed patch -SOURCES/$$(patsubst %.gz,%,$$(patsubst %.bz2,%,$$(Patch$(1)))): - mkdir -p SOURCES - cvsps --cvs-direct --root $$(CVSROOT) -g -s $(1) $$(MODULE) > $$@ - -endef - -# bzip2 -%.bz2: % - bzip2 -c $< > $@ - -# gzip -%.gz: % - gzip -c $< > $@ - -# Generate rules to generate patches (make-3.80 and above expands this) -$(foreach n,$(PATCHES),$(eval $(call PATCH_template,$(n)))) - -# -# Generate spec file -# - -ifeq ($(TAG),HEAD) -# Define date for untagged builds -DATE := $(shell date +%Y.%m.%d) -endif - -# Generate spec file -SPECS/$(notdir $(SPEC)): SPECS/$(notdir $(SPEC)).in - rm -f $@ -ifeq ($(TAG),HEAD) - # Define date for untagged builds - echo "%define date $(DATE)" >> $@ -endif - # Rewrite patch sections of spec file - perl -n -e ' \ - next if /^Patch.*/; \ - next if /^%patch.*/; \ - print; \ - if (/^Source.*/) { $(foreach n,$(PATCHES),print "Patch$(n): $(Patch$(n))\n";) } \ - if (/^%setup.*/) { $(foreach n,$(PATCHES),print "%patch$(n) -p1\n";) } \ - ' $< >> $@ - -# -# Build -# - -RPMFLAGS += $(if $(DATE),--define "date $(DATE)") -NVR := $(shell rpmquery $(RPMFLAGS) --specfile SPECS/$(notdir $(SPEC)).in 2>/dev/null | head -1) -ARCH := $(shell rpmquery $(RPMFLAGS) --queryformat '%{ARCH}\n' --specfile SPECS/$(notdir $(SPEC)).in 2>/dev/null | head -1) - -all: RPMS/$(ARCH)/$(NVR).$(ARCH).rpm SRPMS/$(NVR).src.rpm - -# Build RPM -RPMS/$(ARCH)/$(NVR).$(ARCH).rpm: SPECS/$(notdir $(SPEC)) $(SOURCES) .rpmmacros - mkdir -p BUILD RPMS - rpmbuild $(RPMFLAGS) -bb $< - -# Build SRPM -SRPMS/$(NVR).src.rpm: SPECS/$(notdir $(SPEC)) $(SOURCES) .rpmmacros - mkdir -p SRPMS - rpmbuild $(RPMFLAGS) -bs $< - -# Base rpmbuild in the current directory -.rpmmacros: - echo "%_topdir $(HOME)" > $@ - -# Remove files generated by this package -clean: - rm -rf \ - BUILD/$(Base0) \ - RPMS/$(ARCH)/$(NVR).$(ARCH).rpm \ - SOURCES/$(Base0)* SOURCES/$(package)* \ - SPECS/$(notdir $(SPEC)).in SPECS/$(notdir $(SPEC)) $(MK) \ - SRPMS/$(NVR).src.rpm \ - .cvsps/$(subst /,#,$(CVSROOT)/$(MODULE)) - -.PHONY: all clean diff --git a/pup-cvs b/pup-cvs deleted file mode 100644 index de6d30fe..00000000 --- a/pup-cvs +++ /dev/null @@ -1,12 +0,0 @@ ------BEGIN DSA PRIVATE KEY----- -MIIBvAIBAAKBgQDRgpo/lpwK2t0Y5RJYlitAOXQydmKElSgJV7ZuOEYsboPDg3Co -Bu88mlJZZ7cGT/3BRfLZ4Fe2U/uEOhWWsezjQ80jwVDUTUVU0Lc5VlGvOUhr97sC -Bg4SreMYJECdWL5Dr03NPaSrFArmRLUBo9F5BfxKDRe/Kmor1C8bO1stcwIVALTn -PWsWh9EHV0WU+EJ91nOdkDHrAoGBAK1BFyKL7vWx9N0AKN8vK0deuVSYLzKw2dkb -aieP1RxQ2tJRSkxdn6QIkzlMvqrFXF+3DePtiaswlCMNaOnlCr7mhcGyo+Eh9kU5 -WJRrPutEzKZ2mjWvbtN8Jpx0OSLRNdL9FKCbCjkYpNPpYpCTfR3sljAKLVNUVNv0 -p4FHzFcRAoGAA2n0Vi0tGb351H/IuaxYoAs205Qzs6sN4+ry1GisH+D5CNGGDaCT -+heIsb43BMwSQJ8drgSSY7PHD3HPRs/KJrCp5zTeR4n/xoytB0DvV9oFqk1RI7BD -cZfwS8XZAYHkqnfPlldrqy/iHNGXy8gpHAFPbVms+0JVZPkAarSRuVMCFQCunur0 -bZnMYZM2D3mO/gTvpPCbvg== ------END DSA PRIVATE KEY----- diff --git a/pup-cvs.pub b/pup-cvs.pub deleted file mode 100644 index 166261ef..00000000 --- a/pup-cvs.pub +++ /dev/null @@ -1 +0,0 @@ -ssh-dss AAAAB3NzaC1kc3MAAACBANGCmj+WnAra3RjlEliWK0A5dDJ2YoSVKAlXtm44Rixug8ODcKgG7zyaUllntwZP/cFF8tngV7ZT+4Q6FZax7ONDzSPBUNRNRVTQtzlWUa85SGv3uwIGDhKt4xgkQJ1YvkOvTc09pKsUCuZEtQGj0XkF/EoNF78qaivULxs7Wy1zAAAAFQC05z1rFofRB1dFlPhCfdZznZAx6wAAAIEArUEXIovu9bH03QAo3y8rR165VJgvMrDZ2RtqJ4/VHFDa0lFKTF2fpAiTOUy+qsVcX7cN4+2JqzCUIw1o6eUKvuaFwbKj4SH2RTlYlGs+60TMpnaaNa9u03wmnHQ5ItE10v0UoJsKORik0+likJN9HeyWMAotU1RU2/SngUfMVxEAAACAA2n0Vi0tGb351H/IuaxYoAs205Qzs6sN4+ry1GisH+D5CNGGDaCT+heIsb43BMwSQJ8drgSSY7PHD3HPRs/KJrCp5zTeR4n/xoytB0DvV9oFqk1RI7BDcZfwS8XZAYHkqnfPlldrqy/iHNGXy8gpHAFPbVms+0JVZPkAarSRuVM= pupdev@cs.princeton.edu -- 2.43.0