From 5918aae8a60242e6152a34eff72d67bf97ea606d Mon Sep 17 00:00:00 2001 From: kremlin Date: Mon, 19 May 2014 19:01:45 -0500 Subject: [PATCH] add INSTALL, README.tmp and TODO, start openbsd-specific makefile --- INSTALL | 5 ++ Makefile | 1 + Makefile.tmp | 126 +++++++++++++++++++++++++++++++++++++++++++++++++++ README.tmp | 29 ++++++++++++ TODO | 1 + 5 files changed, 162 insertions(+) create mode 100644 INSTALL create mode 100644 Makefile create mode 100644 Makefile.tmp create mode 100644 README.tmp create mode 100644 TODO diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..8b4071e --- /dev/null +++ b/INSTALL @@ -0,0 +1,5 @@ +For now, 'make' by itself will generate testable binaries in bin/ + +TODO: ask ajac+landry about portability and autoconf + mk.conf +TODO: write 'install' target +TODO: write 'clean' target diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..631a7ab --- /dev/null +++ b/Makefile @@ -0,0 +1 @@ +# see next commit diff --git a/Makefile.tmp b/Makefile.tmp new file mode 100644 index 0000000..6a7b6d4 --- /dev/null +++ b/Makefile.tmp @@ -0,0 +1,126 @@ +# TODO: modify below as you test on new machines +ONLY_FOR_ARCHS = amd64 +#NOT_FOR_ARCHS = ??? +#SHARED_ONLY = ??? +#COMES_WITH = ??? +#BROKEN = reason + +COMMENT = Provides drop-in support for systemd utilities hostnamed, \ +localed, timedated, and logind + +# TODO: think of better name +PKGNAME = dbus-utilities + +# should i create four seperate packages for the utils or just 1?\ +# ajacoutot@ landry@ +#PKGNAME-foo = ??? for multi packages + +# for any port that creates shared libraries. +# both libtool and cmake handle this automatically. +# for libtool-based ports, have a look at WRKBUILD/shared_libs.log +#SHARED_LIBS = ??? + +CATEGORIES = devel + +HOMEPAGE = http://uglyman.kremlin.cc + +MAINTAINER = ian + +# TODO: make sure this stays true/check for GPL poison +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_FTP = Yes + +# "make port-lib-depends-check" can help +#WANTLIB = ??? + +MASTER_SITES = git://uglyman.kremlin.cc/git/systemd-utl.git \ + http://uglyman.kremlin.cc + +# TODO: list deps :( +# Dependencies +#MODULES = ??? +#BUILD_DEPENDS = ??? +#RUN_DEPENDS = ??? +#LIB_DEPENDS = ??? +#TEST_DEPENDS = ??? + +#MAKE_FLAGS = ??? +#MAKE_ENV = ??? +#FAKE_FLAGS = ??? +#TEST_FLAGS = ??? + +SEPARATE_BUILD = Yes +USE_GMAKE = Yes +USE_GROFF = Yes +# is it okay to use gmake/auto* tools? landry@ ajacoutot@ +# Programs that require GNU libtool to build instead of the OpenBSD one +# should use this option. +#USE_LIBTOOL= gnu +# Set CONFIGURE_STYLE to value corresponding to some standard configuration +# perl [modbuild]: perl's MakeMaker Makefile.PL (modbuild: perl's +# Module::Build Build.PL) +# gnu [autoconf] [old] [dest]: gnu style configure (old: no +# sysconfdir), (dest: add DESTDIR, does not handle it), +# (autoconf: needed by port, implies gnu) +# XXX: cygnus products do NOT use autoconf for making the main +# configure from configure.in +# imake [noman]: port uses imake for configuration. +# (noman: no man page installation) +# simple: port has its own configure script +#CONFIGURE_STYLE = +#CONFIGURE_SCRIPT = ??? (if other than configure) +#CONFIGURE_ARGS += ${CONFIGURE_SHARED} +#CONFIGURE_ENV = ??? + +# for gnu stuff +#AUTOCONF_VERSION = ??? (defaults to 2.13) +#AUTOMAKE_VERSION = ??? (defaults to 1.4) +# config.guess and others are copied here +#MODGNU_CONFIG_GUESS_DIRS = ??? (defaults to ${WRKSRC}) + +# Is the build automagic or is it interactive +# +#IS_INTERACTIVE = Yes +#TEST_IS_INTERACTIVE = Yes + +# TODO: flavors, later on +# Assume you have one multiple choice flavor: 1 2 3 and switches a b. +# You would write +# +#FLAVORS = 1 2 3 a b +#FLAVOR ?= +# grab multiple choice value +#CHOICE = ${FLAVOR:Na:Nb} +# check that CHOICE is 1 OR 2 OR 3, or error out +#.if ${CHOICE} == "1" +# code for 1 +#.elif ${CHOICE} == "2" +# code for 2 +#.elif ${CHOICE} == "3" +# code for 3 +#.else +#ERRORS += "Fatal: Conflicting flavor: ${FLAVOR}" +#.endif +# check for switches +#.if ${FLAVOR:Ma} +# code for a +#.endif +#.if ${FLAVOR:Mb} +# code for b +#.endif + +CFLAGS = ??? +LDFLAGS = ??? +MAKE_FILE = ??? +PKG_ARCH = ??? (* for arch-independent packages) +#WRKDIST = ??? if other than ${WRKDIR}/${DISTNAME} +#WRKSRC = ??? if other than ${WRKDIST} +#WRKBUILD = ??? if other than ${WRKSRC} +#WRKCONF = ??? if other than ${WRKBUILD} + +#ALL_TARGET = ??? +#INSTALL_TARGET = ??? +#TEST_TARGET = ??? + +.include diff --git a/README.tmp b/README.tmp new file mode 100644 index 0000000..11d0f64 --- /dev/null +++ b/README.tmp @@ -0,0 +1,29 @@ +this file explains my workflow/structuring habits and is meant only to +save mentor's time. ideally, this file will be deleted before "release" +and all files will follow standard protocol/KNF. +------------------------------------------------------------------------ +FILESYSTEM + +/src - source files + /src/logind - obvious + /src/hostnamed - obvious + /src/localed - obvious + /src/timedated - obvious +/bin - dir for compiled test binaries, will eventually be build tmp dir +/build - build dir +------------------------------------------------------------------------ +TODO + +i keep a general informal list of TODO tasks in /TODO, as well as inline +TODOs in source. TODO tasks must be single line as the are delimited by +a newline character, this makes it so one can easily grep for TODO: and +get complete output. before release, /TODO should be deleted and "TODO:" +should never appear anywhere in any file. + +additionally, any questions for mentors are written as comments and end +in ajacoutot@ or landry@, i use these if i can't catch y'all on IRC :) +------------------------------------------------------------------------ +ETC + +* make sure to end files newlines as their abscence confuses git + diff --git a/TODO b/TODO new file mode 100644 index 0000000..1f986f4 --- /dev/null +++ b/TODO @@ -0,0 +1 @@ + * get autoconf stuff figured out -- 2.41.0