2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2024 Marcel Telka
16 USE_DEFAULT_TEST_TRANSFORMS
= yes
18 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_VERSION
= 1.0.18
22 COMPONENT_SUMMARY
= lldpd is a
802.1AB implementation
(LLDP
) to help you locate neighbors of
all your equipments
23 COMPONENT_PROJECT_URL
= https
://lldpd.github.io
/
24 COMPONENT_FMRI
= service
/network
/lldp
25 COMPONENT_CLASSIFICATION
= System
/Services
26 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
27 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
28 COMPONENT_ARCHIVE_URL
= https
://media.luffy.cx
/files
/lldpd
/$(COMPONENT_ARCHIVE
)
29 COMPONENT_ARCHIVE_HASH
= sha256
:4b320675d608901a4a0d4feff8f96bb846d4913d914b0cf75b7d0ae80490f2f7
30 COMPONENT_LICENSE
= ISC
31 COMPONENT_LICENSE_FILE
= LICENSE
33 include $(WS_MAKE_RULES
)/common.mk
35 # Build expects socket functions in libc
36 CONFIGURE_ENV
+= LIBS
=-lsocket
38 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
39 CONFIGURE_OPTIONS
+= --localstatedir
=$(VARDIR
)
40 CONFIGURE_OPTIONS
+= --disable-static
41 CONFIGURE_OPTIONS
+= --with-privsep-user
=lldp
42 CONFIGURE_OPTIONS
+= --with-privsep-group
=lldp
43 CONFIGURE_OPTIONS
+= --with-privsep-chroot
=$(VARDIR
)/empty
45 # Install the service related files
46 COMPONENT_POST_INSTALL_ACTION
+= $(INSTALL
) -Dm0444
$(COMPONENT_DIR
)/files
/lldp.xml
$(PROTO_DIR
)/lib
/svc
/manifest
/network
/lldp.xml
;
48 # Auto-generated dependencies
49 REQUIRED_PACKAGES
+= SUNWcs
50 REQUIRED_PACKAGES
+= library
/libevent2
51 REQUIRED_PACKAGES
+= library
/libxml2
52 REQUIRED_PACKAGES
+= library
/readline
53 REQUIRED_PACKAGES
+= system
/library