Hi
Attached are some files needed to get udev 0.6.5 with the needed libnih.
Yes i know i shuld use git for that but well its just some rule files...
I think the upstart.in is not changed from the version of the latest ptxdist
2010.03.0 release.
Best regards
Tim
## SECTION=shell_and_console
config UPSTART
tristate
select DBUS
select LIBNIH
prompt "upstart"
help
upstart is a replacement for the /sbin/init daemon which
handles starting of tasks and services during boot, stopping
them during shutdown and supervising them while the system
is running.
# -*-makefile-*-
#
# Copyright (C) 2009 by Robert Schwebel <[email protected]>
# Tim Sander <[email protected]>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_UPSTART) += upstart
#
# Paths and names
#
UPSTART_VERSION := 0.6.5
UPSTART := upstart-$(UPSTART_VERSION)
UPSTART_SUFFIX := tar.gz
UPSTART_URL :=
http://upstart.ubuntu.com/download/0.6/$(UPSTART).$(UPSTART_SUFFIX)
UPSTART_SOURCE := $(SRCDIR)/$(UPSTART).$(UPSTART_SUFFIX)
UPSTART_DIR := $(BUILDDIR)/$(UPSTART)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(UPSTART_SOURCE):
@$(call targetinfo)
@$(call get, UPSTART)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
UPSTART_PATH := PATH=$(CROSS_PATH)
UPSTART_ENV := $(CROSS_ENV)
#
# autoconf
#
UPSTART_AUTOCONF := \
$(CROSS_AUTOCONF_USR) \
--disable-nls \
--enable-threads=posix \
--disable-rpath \
--enable-shared \
--enable-static \
--enable-threading \
--enable-compiler-warnings \
--enable-compiler-optimisations \
--disable-compiler-coverage \
--enable-linker-optimisations \
--with-gnu-ld \
--without-libpth-prefix \
--without-libiconv-prefix \
--with-included-gettext \
--without-libintl-prefix
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/upstart.targetinstall:
@$(call targetinfo)
@$(call install_init, upstart)
@$(call install_fixup, upstart,PACKAGE,upstart)
@$(call install_fixup, upstart,PRIORITY,optional)
@$(call install_fixup, upstart,VERSION,$(UPSTART_VERSION))
@$(call install_fixup, upstart,SECTION,base)
@$(call install_fixup, upstart,AUTHOR,"Robert Schwebel
<[email protected]>")
@$(call install_fixup, upstart,DEPENDS,)
@$(call install_fixup, upstart,DESCRIPTION,missing)
@$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/init)
@$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/halt)
@$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/shutdown)
@$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/stop)
@$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/reboot)
@$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/poweroff)
@$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/runlevel)
@$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/telinit)
@$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/start)
@$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/status)
@$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/initctl)
@$(call install_copy, upstart, 0, 0, 0755, -,
/etc/init/control-alt-delete.conf)
@$(call install_copy, upstart, 0, 0, 0755, -, /etc/init/rc.conf)
@$(call install_copy, upstart, 0, 0, 0755, -, /etc/init/rcS.conf)
@$(call install_copy, upstart, 0, 0, 0755, -, /etc/init/rc-sysinit.conf)
@$(call install_copy, upstart, 0, 0, 0644, -,
/etc/dbus-1/system.d/Upstart.conf)
@$(call install_finish, upstart)
@$(call touch)
# vim: syntax=make
## SECTION=hosttools_noprompt
config HOST_LIBNIH
tristate
select HOST_DBUS
# -*-makefile-*-
#
# Copyright (C) 2010 by Tim Sander <[email protected]>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
HOST_PACKAGES-$(PTXCONF_HOST_LIBNIH) += host-libnih
#
# Paths and names
#
HOST_LIBNIH_DIR = $(HOST_BUILDDIR)/$(LIBNIH)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
HOST_LIBNIH_PATH := PATH=$(HOST_PATH)
HOST_LIBNIH_ENV := $(HOST_ENV)
#
# autoconf
#
HOST_LIBNIH_AUTOCONF := $(HOST_AUTOCONF)
# vim: syntax=make
## SECTION=system_libraries
config LIBNIH
bool
prompt "libnih"
select DBUS
select HOST_LIBNIH
help
libnih is a small library for C application development containing
functions that, despite its name, are not implemented elsewhere in the standard
library set.
# -*-makefile-*-
#
# Copyright (C) 2010 by Tim Sander
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_LIBNIH) += libnih
#
# Paths and names
#
LIBNIH_VERSION := 1.0.1
LIBNIH := libnih-$(LIBNIH_VERSION)
LIBNIH_SUFFIX := tar.gz
#LIBNIH_SRCDIR := $(PTXDIST_WORKSPACE)/local_src/$(LIBNIH)
LIBNIH_URL :=
http://launchpad.net/libnih/1.0/$(LIBNIH_VERSION)/+download/$(LIBNIH).$(LIBNIH_SUFFIX)
LIBNIH_DIR := $(BUILDDIR)/$(LIBNIH)
LIBNIH_SOURCE := $(SRCDIR)/$(LIBNIH).$(LIBNIH_SUFFIX)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(LIBNIH_SOURCE):
@$(call targetinfo)
@$(call get, LIBNIH)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
LIBNIH_PATH := PATH=$(CROSS_PATH)
LIBNIH_ENV := $(CROSS_ENV)
NIH_DBUS_TOOL=${PTXDIST_PLATFORMDIR}/sysroot-host/bin/nih-dbus-tool
#
# autoconf
#
LIBNIH_AUTOCONF := \
$(CROSS_AUTOCONF_USR)
#$(STATEDIR)/libnih.prepare:
# @$(call targetinfo)
# @$(call clean, $(LIBNIH_DIR)/config.cache)
# cd $(LIBNIH_DIR) && \
# $(LIBNIH_PATH) $(LIBNIH_ENV) \
# $(LIBNIH_SRCDIR)/configure $(LIBNIH_AUTOCONF)
# @$(call touch)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
#$(STATEDIR)/libnih.compile:
# @$(call targetinfo)
# cd $(LIBNIH_DIR) && $(LIBNIH_ENV) $(LIBNIH_PATH) $(MAKE)
$(PARALLELMFLAGS)
# @$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
#$(STATEDIR)/libnih.install:
# @$(call targetinfo)
# @$(call install, LIBNIH)
# @$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/libnih.targetinstall:
@$(call targetinfo)
@$(call install_init, libnih)
@$(call install_fixup, libnih, PACKAGE, libnih)
@$(call install_fixup, libnih, PRIORITY, optional)
@$(call install_fixup, libnih, VERSION, 1.0.1)
@$(call install_fixup, libnih, SECTION, base)
@$(call install_fixup, libnih, AUTHOR, "Tim Sander")
@$(call install_fixup, libnih, DEPENDS,)
@$(call install_fixup, libnih, DESCRIPTION, missing)
# #
# # example code:; copy all libraries, links and binaries
# #
@for i in $(shell cd $(PKGDIR)/$(LIBNIH) && find bin sbin usr/bin
usr/sbin -type f); do \
$(call install_copy, libnih, 0, 0, 0755, -, /$$i); \
done
@for i in $(shell cd $(PKGDIR)/$(LIBNIH) && find lib usr/lib -name
"*.so*"); do \
$(call install_copy, libnih, 0, 0, 0644, -, /$$i); \
done
@links="$(shell cd $(PKGDIR)/$(LIBNIH) && find lib usr/lib -type l)"; \
if [ -n "$$links" ]; then \
for i in $$links; do \
from="`readlink $(PKGDIR)/$(LIBNIH)/$$i`"; \
to="/$$i"; \
$(call install_link, libnih, $$from, $$to); \
done; \
fi
# #
# # FIXME: add all necessary things here
# #
@$(call install_finish, libnih)
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
libnih_clean:
rm -rf $(STATEDIR)/libnih.*
rm -rf $(PKGDIR)/libnih_*
rm -rf $(LIBNIH_DIR)
# vim: syntax=make
--
ptxdist mailing list
[email protected]