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 2021 David Stes
16 # Package Makefile for "Frequency Cron" (fcron) by Thibault Godouet
17 # See https://github.com/yo8192/fcron and http://fcron.free.fr/
20 include ..
/..
/..
/make-rules
/shared-macros.mk
23 COMPONENT_VERSION
= 3.3.2
24 COMPONENT_SUMMARY
= Frequency Cron
25 COMPONENT_PROJECT_URL
= http
://fcron.free.fr
26 COMPONENT_SRC
= fcron-
$(COMPONENT_VERSION
)
27 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).src.
tar.gz
28 COMPONENT_ARCHIVE_HASH
= sha256
:0d25586c5a5875b2bd853a7d57a7a01938e3b1ac5a68ae52525b66b302ca196e
29 COMPONENT_ARCHIVE_URL
= http
://fcron.free.fr
/archives
/$(COMPONENT_ARCHIVE
)
30 COMPONENT_FMRI
= sysutils
/fcron
31 COMPONENT_CLASSIFICATION
= System
/Administration and Configuration
32 COMPONENT_LICENSE
= GPLv2
34 TEST_TARGET
= $(NO_TESTS
)
35 include $(WS_MAKE_RULES
)/common.mk
38 # gcc 14 complains about this
39 CFLAGS
+= -Wno-error
=incompatible-pointer-types
40 CFLAGS
+= -Wno-error
=int-conversion
42 # a modified copy of the sysVinit-launcher script
43 PKG_PROTO_DIRS
+= $(COMPONENT_DIR
)/files
45 CONFIGURE_OPTIONS
+= --with-cflags
="$(CFLAGS)"
46 CONFIGURE_OPTIONS
+= --with-spooldir
=/var
/spool
/fcron
47 CONFIGURE_OPTIONS
+= --with-piddir
=/var
/run
48 CONFIGURE_OPTIONS
+= --with-fifodir
=/var
/run
50 # the default username and groupname is fcron/fcron
51 # and the configure script+ Makefile wants to add those interactively
52 # this is fixed by a patch (01-user-group.patch) as option -with-answer-all
53 # is not skipping the actual tests
55 # do not install systemd/rc.d boot install scripts
56 # a simple legacy /etc/init.d script is provided by script/sysVinit-launcher
57 CONFIGURE_OPTIONS
+= --with-boot-install
=no
58 # unable to get pam working
59 CONFIGURE_OPTIONS
+= --with-pam
=no
61 # default install is install-staged + strip + perms (perms set permissions)
63 COMPONENT_INSTALL_TARGETS
=install-staged
65 # Manually added build dependencies
66 REQUIRED_PACKAGES
+= editor
/vim
67 REQUIRED_PACKAGES
+= service
/network
/smtp
/sendmail
69 # Auto-generated dependencies
70 REQUIRED_PACKAGES
+= $(READLINE_PKG
)
71 REQUIRED_PACKAGES
+= shell/ksh93
72 REQUIRED_PACKAGES
+= system
/library