2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2013 Adam Stevko. All rights reserved.
13 # Copyright 2014 Alexander Pyhalov. All rights reserved.
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= sysding
19 COMPONENT_SRC
= $(COMPONENT_NAME
)
20 COMPONENT_VERSION
= 0.5.11
21 COMPONENT_LICENSE
= CDDL
22 COMPONENT_LICENSE_FILE
= $(COMPONENT_NAME
).license
23 COMPONENT_PROJECT_URL
= http
://openindiana.org
24 COMPONENT_CLASSIFICATION
= System
/Administration and Configuration
25 COMPONENT_FMRI
= service
/management
/sysding
27 COMPONENT_REVISION
=$(shell cd
$(COMPONENT_SRC
); git rev-list HEAD
--count
)
29 COMPONENT_SUMMARY
= Simple tool for initial system configuration
32 GIT_REPO
=https
://github.com
/OpenIndiana
/sysding
36 PATH
=/usr
/gnu
/bin
:/usr
/bin
39 include $(WS_TOP
)/make-rules
/prep.mk
40 include $(WS_TOP
)/make-rules
/justmake.mk
42 # The ugly hack with update-publish target is necessary to update
43 # source from git repository on each "gmake publish".
44 # publish: target should appear before inclusion of ips.mk
45 publish
: update-publish
47 include $(WS_TOP
)/make-rules
/ips.mk
49 $(SOURCE_DIR
)/.downloaded
: $(ARCHIVES
:%=$(USERLAND_ARCHIVES
)%)
50 @
[ -d
$(SOURCE_DIR
) ] || \
51 $(GIT
) clone
-b
$(GIT_BRANCH
) $(GIT_REPO
) $(SOURCE_DIR
)
52 @cd
$(SOURCE_DIR
) ; $(GIT
) checkout
$(GIT_BRANCH
) ; $(GIT
) pull \
53 $(GIT_REPO
) ; $(GIT
) log
-1 --format
=%H
> .downloaded
56 @
[ -d
$(SOURCE_DIR
) ] || \
57 $(GIT
) clone
-b
$(GIT_BRANCH
) $(GIT_REPO
) $(SOURCE_DIR
)
58 cd
$(SOURCE_DIR
) ; $(GIT
) pull
$(GIT_REPO
) ; \
59 [ "$$($(GIT) log -1 --format=%H)" == "$$(cat .downloaded)" ] || \
60 ( $(GIT
) log
-1 --format
=%H
> .downloaded
&& $(MAKE
) -C
$$OLDPWD publish
)
62 COMPONENT_BUILD_TARGETS
= all
64 $(SOURCE_DIR
)/.prep
: $(SOURCE_DIR
)/.downloaded Makefile
68 install: $(INSTALL_32
)
70 download
:: $(SOURCE_DIR
)/.downloaded
72 # Auto-generated dependencies
73 REQUIRED_PACKAGES
+= SUNWcs