You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.5 KiB
50 lines
1.5 KiB
4 years ago
|
################################################################################
|
||
|
#
|
||
|
# procps-ng
|
||
|
#
|
||
|
################################################################################
|
||
|
|
||
|
PROCPS_NG_VERSION = 3.3.16
|
||
|
PROCPS_NG_DIR = procps-ng-$(PROCPS_NG_VERSION)
|
||
|
PROCPS_NG_SOURCE = procps-ng-$(PROCPS_NG_VERSION).tar.xz
|
||
|
PROCPS_NG_SITE = http://sourceforge.net/projects/procps-ng/files/Production
|
||
|
|
||
|
PROCPS_NG_DEPENDENCIES = ncurses
|
||
|
|
||
|
PROCPS_NG_AUTORECONF = YES
|
||
|
|
||
|
PROCPS_NG_CONF_ENV = \
|
||
|
ac_cv_func_malloc_0_nonnull=yes \
|
||
|
ac_cv_func_realloc_0_nonnull=yes
|
||
|
|
||
|
PROCPS_NG_CONF_OPTS = \
|
||
|
--prefix=$(base_prefix) \
|
||
|
--exec_prefix=$(base_prefix) \
|
||
|
--includedir=$(includedir) \
|
||
|
--libdir=$(libdir) \
|
||
|
--bindir=$(base_bindir).$(@F) \
|
||
|
--docdir=$(REMOVE_docdir) \
|
||
|
--without-systemd
|
||
|
|
||
|
PROCPS_NG_BINARIES = ps top
|
||
|
|
||
|
define PROCPS_NG_INSTALL_BINARIES
|
||
|
for bin in $(PROCPS_NG_BINARIES); do \
|
||
|
rm -f $(TARGET_base_bindir)/$$bin; \
|
||
|
$(INSTALL_EXEC) -D $(TARGET_base_bindir).$(@F)/$$bin $(TARGET_base_bindir)/$$bin; \
|
||
|
done
|
||
|
rm -r $(TARGET_base_bindir).$(@F)
|
||
|
endef
|
||
|
PROCPS_NG_TARGET_FINALIZE_HOOKS += PROCPS_NG_INSTALL_BINARIES
|
||
|
|
||
|
define PROCPS_NG_INSTALL_SYSCTL_FILES
|
||
|
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/sysctl.conf $(TARGET_sysconfdir)/sysctl.conf
|
||
|
$(INSTALL) -d $(TARGET_sysconfdir)/sysctl.d
|
||
|
$(INSTALL) -d $(TARGET_localstatedir)/etc/sysctl.d
|
||
|
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/sysctl.init $(TARGET_sysconfdir)/init.d/sysctl
|
||
|
endef
|
||
|
PROCPS_NG_TARGET_FINALIZE_HOOKS += PROCPS_NG_INSTALL_SYSCTL_FILES
|
||
|
|
||
|
procps-ng: | $(TARGET_DIR)
|
||
|
$(call autotools-package)
|