rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / network / tunctl / Makefile
blobba5acc1fe4f8e97476237066ca9caa010407f3e4
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 2016 Jim Klimov
15 include ../../../make-rules/shared-macros.mk
17 COMPONENT_NAME= tunctl
18 COMPONENT_GIT_DATE= 20141214
19 COMPONENT_GIT_REV= e83516b
20 COMPONENT_VERSION= 0.1.1.$(COMPONENT_GIT_DATE)
21 COMPONENT_LICENSE= GPLv2+
22 COMPONENT_FMRI= driver/network/$(COMPONENT_NAME)
23 COMPONENT_SRC= kaizawa-$(COMPONENT_NAME)-$(COMPONENT_GIT_REV)
24 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
25 COMPONENT_ARCHIVE_HASH= sha256:6df8837e21844ab3f0f50cf9f9c7142cbeebc8bda898b566eedb19d38b88731a
26 COMPONENT_PROJECT_URL= http://www.whiteboard.ne.jp/~admin2/tuntap/
27 COMPONENT_ARCHIVE_URL= https://codeload.github.com/kaizawa/$(COMPONENT_NAME)/legacy.tar.gz/$(COMPONENT_GIT_REV)
28 COMPONENT_CLASSIFICATION= Drivers/Networking
29 COMPONENT_SUMMARY= The tunctl command enables administrators to preconfigure a TUN/TAP device and delete a stalled one
31 include $(WS_MAKE_RULES)/prep.mk
32 include $(WS_MAKE_RULES)/configure.mk
33 include $(WS_MAKE_RULES)/ips.mk
35 # The sources include a copy of the header. As of 2016, they are identical
36 # to those that come with tuntap drivers - and future-wise, they should match.
37 COMPONENT_PREP_ACTION = \
38 (cd $(@D) && rm -f if_tun.h && autoreconf -fiv)
39 REQUIRED_PACKAGES += driver/network/header-tun
41 CFLAGS += $(CPP_LARGEFILES)
42 LDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
44 # common targets
45 build: $(BUILD_32_and_64)
47 install: $(INSTALL_32_and_64)