Marcel Telka
2024-04-02 f1b1912adc00984cd165470b728dda03ac81b2c6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"). You may
# only use this file in accordance with the terms of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
 
#
# Copyright 2016 Adam Stevko 
#
 
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME=    udpxy
COMPONENT_VERSION= 1.0.23
COMPONENT_VERSION_REV= 10
COMPONENT_REVISION= 11
IPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_VERSION_REV) 
COMPONENT_SUMMARY=udpxy is a UDP-to-HTTP multicast traffic relay daemon: it forwards UDP traffic from a given multicast subscription to the requesting HTTP client.
COMPONENT_PROJECT_URL=    http://www.udpxy.com/
COMPONENT_FMRI=    network/udpxy
COMPONENT_CLASSIFICATION=  Applications/Internet
COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)-$(COMPONENT_VERSION_REV)
COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_URL=    http://www.udpxy.com/download/$(COMPONENT_NAME)/$(COMPONENT_NAME)-src.tar.gz
COMPONENT_ARCHIVE_HASH=    sha256:187d5306136b9ed1bb59a7f2822bbcb1cc0a279090dba88a7a6bd78ab20a95a6
COMPONENT_LICENSE= GPLv3
 
include $(WS_MAKE_RULES)/prep.mk
include $(WS_MAKE_RULES)/justmake.mk
include $(WS_MAKE_RULES)/ips.mk
 
CDEFS+= -DNO_SOCKADDR_SA_LEN
CDEFS+= -D_POSIX_PTHREAD_SEMANTICS
 
LDFLAGS+= -lsocket
LDFLAGS+= -lnsl
 
COMPONENT_BUILD_ENV+= CC=$(CC)
COMPONENT_BUILD_ENV+= CFLAGS="$(CFLAGS)"
COMPONENT_BUILD_ENV+= LDFLAGS="$(LDFLAGS)"
COMPONENT_BUILD_ENV+= CDEFS="$(CDEFS)"
COMPONENT_INSTALL_ENV+= PREFIX=/usr
 
COMPONENT_BUILD_TARGETS= release
 
build:        $(BUILD_64)
 
install:    $(INSTALL_64)
 
test:        $(NO_TESTS)
 
# Auto-generated dependencies
REQUIRED_PACKAGES += SUNWcs
REQUIRED_PACKAGES += system/library