diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
commit | 47e6e7c84f008a53061e661f31ae96629bc694ef (patch) | |
tree | 648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /build/sun/GNUmakefile | |
download | pcp-debian.tar.gz |
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'build/sun/GNUmakefile')
-rw-r--r-- | build/sun/GNUmakefile | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/build/sun/GNUmakefile b/build/sun/GNUmakefile new file mode 100644 index 0000000..4b111af --- /dev/null +++ b/build/sun/GNUmakefile @@ -0,0 +1,62 @@ +# +# Copyright (c) 2013 Red Hat. +# Copyright (c) 2009 Max Matveev. All Rights Reserved. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 2 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# + +TOPDIR = ../.. +include $(TOPDIR)/src/include/builddefs + +LSRCFILES = pcp.xml preinstall postinstall preremove +LDIRT += pkginfo proto pcp pcp-$(PACKAGE_VERSION) +PACKAGE_ARCH = $(shell uname -p) + +default install default_pcp : + +install_pcp : +ifeq "$(TARGET_OS)" "solaris" + $(INSTALL) -m644 pcp.xml /var/svc/manifest/application/pcp.xml +endif + +pack_pcp : proto pkginfo + @rm -rf pcp + $(PKGMK) -b $${DIST_ROOT} -d . -f proto + pkgtrans . $(PACKAGE_NAME)-$(PACKAGE_VERSION) $(PACKAGE_NAME) + +proto : $(_FORCE) + @rm -f $@ + @sort -u ../pack_pcp.bin | \ + awk 'BEGIN { print "i pkginfo=pkginfo"; \ + print "i preremove=preremove"; \ + print "i preinstall=preinstall"; \ + print "i postinstall=postinstall"; \ + } \ + $$1 == "l" {printf "s none %s=%s\n", substr($$3, 2), $$2; next; } \ + {printf "%s none %s 0%d %s %s\n", \ + $$1, substr($$NF, 2) , $$2, $$3, $$4}' > $@ + +pkginfo : $(_FORCE) + @rm -f $@ + @echo "PKG=$(PACKAGE_NAME)" > $@ + @echo "NAME=Performance Co-Pilot" >> $@ + @echo "ARCH=$(PACKAGE_ARCH)" >> $@ + @echo "VERSION=$(PACKAGE_VERSION)" >> $@ + @echo "EMAIL=pcp@mail.performancecopilot.org" >> $@ + @echo "CATEGORY=application" >> $@ + @echo "BASEDIR=/" >> $@ + @echo "CLASSES=application none" >> $@ +ifneq "$(GIT)" "" + @echo "PSTAMP="`$(GIT) log -n1 --pretty=format:%H` >> $@ +endif + +include $(BUILDRULES) + |