1
################################################################################
2
# Linux Management Providers (LMP), System Memory provider package
3
# Copyright (C) 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com>
5
# This program is being developed under the "OpenDRIM" project.
6
# The "OpenDRIM" project web page: http://opendrim.sourceforge.net
7
# The "OpenDRIM" project mailing list: opendrim@googlegroups.com
9
# This program is free software; you can redistribute it and/or
10
# modify it under the terms of the GNU General Public License
11
# as published by the Free Software Foundation; version 2
14
# This program is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
# GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License
20
# along with this program; if not, write to the Free Software
21
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
#################################################################################
24
#################################################################################
25
# To contributors, please leave your contact information in this section
26
# AND comment your changes in the source code.
28
# Modified by <Author(s)>, <Affiliation>, <Year>
29
################################################################################
33
VERSION = $(shell cat ./VERSION)
35
APP_NAME = opendrim-lmp-systemmemory
37
RPM_PACKAGE_DIR = packaging
39
PLATFORM = $(shell rpm --eval %_target_cpu)
41
WORKING_DIR = $(shell pwd)
43
SUBDIRS = Common OpenDRIM_Memory OpenDRIM_EnabledMemoryCapabilities OpenDRIM_RegisteredMemoryProfile OpenDRIM_MemoryCapabilities OpenDRIM_MemoryConformsToProfile OpenDRIM_ComputerSystemMemory test
46
registration/SystemMemory.sh @CIMNAMESPACE@ $(VENDOR) @CIMSERVER@ @INTEROPNAMESPACE@ $(VERSION) .
49
registration/SystemMemory-remove.sh @CIMNAMESPACE@ @CIMSERVER@ @INTEROPNAMESPACE@ .
51
test-OpenDRIM_MemoryCapabilities: all
52
make -C test test-OpenDRIM_MemoryCapabilities
54
test-OpenDRIM_MemoryConformsToProfile: all
55
make -C test test-OpenDRIM_MemoryConformsToProfile
57
test-OpenDRIM_Memory: all
58
make -C test test-OpenDRIM_Memory
60
test-OpenDRIM_EnabledMemoryCapabilities: all
61
make -C test test-OpenDRIM_EnabledMemoryCapabilities
63
test-OpenDRIM_ComputerSystemMemory: all
64
make -C test test-OpenDRIM_ComputerSystemMemory
66
test-OpenDRIM_RegisteredMemoryProfile: all
67
make -C test test-OpenDRIM_RegisteredMemoryProfile
70
rm -rf packaging/$(APP_NAME)-$(VERSION)
74
rm -rf ./tmp/packaging/
75
mv .tmp packaging/$(APP_NAME)-$(VERSION)
76
tar --directory packaging -zcf packaging/$(APP_NAME)-$(VERSION).tar.gz $(APP_NAME)-$(VERSION)
77
rm -rf packaging/$(APP_NAME)-$(VERSION)
80
mkdir -p $(RPM_PACKAGE_DIR)/rpm/RPMS/$(PLATFORM)
81
mkdir -p $(RPM_PACKAGE_DIR)/rpm/SRPMS
82
mkdir -p $(RPM_PACKAGE_DIR)/rpm/BUILD
83
mkdir -p $(RPM_PACKAGE_DIR)/rpm/SOURCES
84
mkdir -p $(RPM_PACKAGE_DIR)/rpm/tmp
85
- rm -r $(RPM_PACKAGE_DIR)/rpm/BUILD/$(APP_NAME)-root
86
- rm -r $(RPM_PACKAGE_DIR)/rpm/RPMS/$(APP_NAME)-*
87
- rm -r $(RPM_PACKAGE_DIR)/rpm/SRPMS/$(APP_NAME)-*
88
- rm -r $(RPM_PACKAGE_DIR)/rpm/SOURCES/$(APP_NAME)-*
89
mv packaging/$(APP_NAME)-$(VERSION).tar.gz $(RPM_PACKAGE_DIR)/rpm/SOURCES/
90
rpmbuild --define="_topdir $(WORKING_DIR)/$(RPM_PACKAGE_DIR)/rpm" --define="version $(VERSION)" -ba $(RPM_PACKAGE_DIR)/$(APP_NAME).spec
93
cp packaging/$(APP_NAME)-$(VERSION).tar.gz packaging/$(APP_NAME)-$(VERSION).orig.tar.gz
94
cd packaging/ && tar axf $(APP_NAME)-$(VERSION).tar.gz
95
cp -R packaging/debian packaging/$(APP_NAME)-$(VERSION)
96
- cd packaging/$(APP_NAME)-$(VERSION) && dpkg-buildpackage -b
97
rm -rf packaging/$(APP_NAME)-$(VERSION)* packaging/*.changes