blob: a2c18fdb8e3f9f94b440a7de33f7335c9675b681 [file] [log] [blame]
developer8c4b8ab2023-02-09 10:37:49 +08001SUMMARY = " a collection of userspace utilities for the ksmbd kernel server"
2SECTION = "Applications"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
developer3dfd2542023-02-07 10:54:54 +08005
6inherit autotools pkgconfig systemd
7
8DEPENDS += "ksmbd libnl glib-2.0"
9
10SRC_URI = " \
11 git://git@github.com/cifsd-team/ksmbd-tools.git;protocol=https;tag=${PV} \
12 file://smb.conf \
13 file://ksmbd.service \
developer8c4b8ab2023-02-09 10:37:49 +080014 file://COPYING;subdir=git \
developer3dfd2542023-02-07 10:54:54 +080015 "
16
17
18
19S = "${WORKDIR}/git"
20
21#EXTRA_OECONF += "GLIB_LIBS="${STAGING_LIBDIR}/libglib-2.0.a""
22EXTRA_OECONF_append = " --disable-shared --enable-static"
23CFLAGS_prepend = " \
24 -D_GNU_SOURCE \
25 -I${STAGING_INCDIR}/libnl3 \
26 -I${STAGING_INCDIR}/glib-2.0 \
27 -I${STAGING_LIBDIR}/glib-2.0/include \
28 -I${S} \
29 -ffunction-sections -fdata-sections -flto \
30 "
31LDFLAGS += " -lglib-2.0"
32
33SYSTEMD_PACKAGES = "${PN}"
34SYSTEMD_SERVICE_${PN} = " ksmbd.service"
35FILES_${PN} += "{systemd_unitdir}/system/ksmbd.service"
36
37do_install_append () {
38 install -d ${D}${systemd_unitdir}/system/
39 install -m 0644 ${WORKDIR}/ksmbd.service ${D}${systemd_unitdir}/system
40 install -d ${D}/etc/ksmbd
41 install -m 0644 ${WORKDIR}/smb.conf ${D}/etc/ksmbd
42 install -m 0644 ${S}//Documentation/configuration.txt ${D}/etc/ksmbd
43}