From 496f5d6622e32869916d421720c179ef3acbeb04 Mon Sep 17 00:00:00 2001 From: kremlin Date: Tue, 27 May 2014 15:29:47 -0500 Subject: [PATCH] set aside -ports makefile for now, we'll deal with it later. begin hostnamed --- Makefile | 62 ++++-------------------------- Makefile.port | 57 +++++++++++++++++++++++++++ bin/out.bin | Bin 0 -> 9915 bytes src/main.c | 5 +++ src/modules/hostnamed/hostnamed.c | 2 + 5 files changed, 72 insertions(+), 54 deletions(-) create mode 100644 Makefile.port create mode 100755 bin/out.bin create mode 100644 src/main.c create mode 100644 src/modules/hostnamed/hostnamed.c diff --git a/Makefile b/Makefile index 4261f4b..4870271 100644 --- a/Makefile +++ b/Makefile @@ -1,57 +1,11 @@ -# stick to what we have for now -ONLY_FOR_ARCHS = amd64 -#NOT_FOR_ARCHS = -#SHARED_ONLY = -#COMES_WITH = +.PHONY: all -COMMENT = dbus utilities +CFLAGS=-Wall -Wextra -Werror -pedantic +DEBUGF=-O0 -v -g +SRCDIR=src +MODDIR=$(SRCDIR)/modules -DISTNAME = dbus-utils-0.1 -PACKAGE = systemd-utls -CATEGORIES = kremlinware test +GLIBF=`pkg-config --cflags --libs glib-2.0 gobject-2.0` -HOMEPAGE = http://uglyman.kremlin.cc - -MAINTAINER = kremlin - -# LGPLv1.3+ (glib) -PERMIT_PACKAGE_CDROM = Yes - -# for now -WANTLIB = c gio-2.0 glib-2.0 - -#TODO: see if it's okay to host this -MASTER_SITES = http://uglyman.kremlin.cc/latest-devel/ -#MODULES = ??? -#BUILD_DEPENDS = ??? -#RUN_DEPENDS = ??? -#TEST_DEPENDS = ??? -LIB_DEPENDS = x11/dbus>=1.8.2v0 \ - devel/glib2 - -#MAKE_FLAGS = ??? -#MAKE_ENV = ??? -#FAKE_FLAGS = ??? -#TEST_FLAGS = ??? - -# build/configuration variables -# -COMMIT = efedf0c -#SEPARATE_BUILD = Yes (build in a directory other than WRKSRC) -#SEPARATE_BUILD = flavored (distinct flavors may share a common WRKSRC) -#CONFIGURE_STYLE = simple -CONFIGURE_SCRIPT = configure -#CFLAGS = ??? -#LDFLAGS = ??? -#MAKE_FILE = ??? -#PKG_ARCH = ??? (* for arch-independent packages) -WRKDIST = ${WRKDIR}/systemd-utl-devel-${COMMIT} -#WRKSRC = ??? if other than ${WRKDIST} -#WRKBUILD = ??? if other than ${WRKSRC} -#WRKCONF = ??? if other than ${WRKBUILD} - -#ALL_TARGET = ??? -#INSTALL_TARGET = ??? -#TEST_TARGET = ??? - -.include +hostnamed: + gcc -o bin/out.bin $(CFLAGS) $(DEBUGF) $(GLIBF) $(SRCDIR)/main.c diff --git a/Makefile.port b/Makefile.port new file mode 100644 index 0000000..661a0be --- /dev/null +++ b/Makefile.port @@ -0,0 +1,57 @@ +# stick to what we have for now +ONLY_FOR_ARCHS = amd64 +#NOT_FOR_ARCHS = +#SHARED_ONLY = +#COMES_WITH = + +COMMENT = dbus utilities + +DISTNAME = dbus-utils-0.1 +PACKAGE = systemd-utls +CATEGORIES = kremlinware test + +HOMEPAGE = http://uglyman.kremlin.cc + +MAINTAINER = kremlin + +# LGPLv1.3+ (glib) +PERMIT_PACKAGE_CDROM = Yes + +# for now +WANTLIB = c gio-2.0 glib-2.0 + +#TODO: see if it's okay to host this +MASTER_SITES = http://uglyman.kremlin.cc/latest-devel/ +#MODULES = ??? +#BUILD_DEPENDS = ??? +#RUN_DEPENDS = ??? +#TEST_DEPENDS = ??? +LIB_DEPENDS = x11/dbus>=1.8.2v0 \ + devel/glib2 + +#MAKE_FLAGS = ??? +#MAKE_ENV = ??? +#FAKE_FLAGS = ??? +#TEST_FLAGS = ??? + +# build/configuration variables +# +#COMMIT = efedf0c +#SEPARATE_BUILD = Yes (build in a directory other than WRKSRC) +#SEPARATE_BUILD = flavored (distinct flavors may share a common WRKSRC) +#CONFIGURE_STYLE = simple +#CONFIGURE_SCRIPT = configure +#CFLAGS = ??? +#LDFLAGS = ??? +#MAKE_FILE = ??? +#PKG_ARCH = ??? (* for arch-independent packages) +#WRKDIST = ${WRKDIR}/systemd-utl-devel-${COMMIT} +#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/bin/out.bin b/bin/out.bin new file mode 100755 index 0000000000000000000000000000000000000000..8f1b86b87c8e98ad767e502973d545c6cbb9c3b2 GIT binary patch literal 9915 zcmeHMYiwM_6`p;?8=S}5PJ&B#Ea0>$h3j=nNO&aJNt|4_22zrg@~GD9-RlRecdgy) zG|)=5*aW&57pnrqk5;l8e$c0Af1s$9Dz`zTmXI3YM^lPKq!MJ;ksKt7Xd&5tXJ*d& z?(8n0s_H{xw0qB-Z_b%HbLKts?e5;)exFZp2#D>1xamfPbm|2AVjThL6kA0jzE_K= zSOz{MF_qq_2vSuz<*%e+jR!!3__tD|25nKWV9FK}rSj?pYn4i2DnvvAq(|j3Zmm){ z)7zDrVCvPQI_hjdqe@cK)4G04S&+&jz0=J~{B(0nMwpH(STHs9`gFznS~{g9Q>`ZY z*df|5GK0#qo0Npz6qOOCQ(B%Ww*&cv{@3buFlnpI1?{9M$x_&R#!XQ?ru`k${$$!K zrG#M0dT;;vsPj?&WV=kNv-^*c_OX1fJw4p-9CDKF>6Dev3PCneJ;;@Jj5?Ve`*xM> z*?<_eu!Vnn8Lf;&!M0UG;yMq%(G&l?CvHYRX8_lNzZ(B982B{?|KDb>{1^j1>q#en zUghCGDjGnG@I2y`3kZL?UsvJ*Ve9^0i3i1V+)+IV0n9iXmwNym4PeCC7uCWW#HpHi zSaj-n)vFZ{%f;TB_(kP;xKh4RMD@6<#8+T`Q}bFSz7pfK7LH7KKJzF9#A*?)iAO}V zCf|p2CBIJWt%+YO`fB2>z&k4o1s4#X zslo^dh)e3=>+9f`*1<2UgI`_;zoH5!OPa(xCDYGmfJa1ieg7o!YCn(4d|Jh{_5;te zMUHEjng2T_)1Q8%H(|AyVLxm6w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C>e1YYOZ0I>YonT_Ef6{LcI~=u#hJeO`x{ zj%z_GBZ@!kvt8Z5$Yj>%`!=S$jzL5Qv;MaMr6O3L*CD374zayv`F9!mysk0rLplZ0 zr?t$~PXHsEcpc_@KBk^&7E*lMFQf8vAHH6Fz7H(ZB~cmUdhlQ#H1wzSfM+_+j?wwB z9%nmZ=<|BV^yBQ$YyC|+L*7sFdyCm#%rpI_)@L*MzLMV;dUd``xc!(p8==7!}jyOh2L}d-G=vl ztk3QE0(7Ye*5`ZIQ~FYj9d)<59D_!rM2{BIYwU8x?Dc%pVsB~v7n}0 zKGRu4pYMA+^~A^ZqfU z6bx3@hvyEjemJVQX+7|-0^5c^+t2e7tx2`Ye{O@)Z!roqSS3{F`|10da!f#c`o2b< z2-J9QQuzPx`dcUK2qt^Q!&DTx-)gq$z z5j@^EN*uc}1E;&OX3Pq_-vlcI&ASm%{SMdzoZjiCTRNp2=l>NcU;XZUx0J7bA57Je ze*n1GJN#~VNXl2g8y*JUEH0`#?-qgAdQbemmY-gU2m3n z@C*EFy)&KwPV(kEnaF x1yEk4EWI+8p8@&FQ@sZA(_!rgP%>COkV?~Pyhqk}B8|s$`q5Nh7RY1zKLH1x5hwrv literal 0 HcmV?d00001 diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..5238699 --- /dev/null +++ b/src/main.c @@ -0,0 +1,5 @@ +#include "modules/hostnamed/hostnamed.c" + +int main() { + return 0; +} diff --git a/src/modules/hostnamed/hostnamed.c b/src/modules/hostnamed/hostnamed.c new file mode 100644 index 0000000..ee25324 --- /dev/null +++ b/src/modules/hostnamed/hostnamed.c @@ -0,0 +1,2 @@ +#include + -- 2.41.0