Installer import
authorDave Hayes <dave@dragonflybsd.org>
Wed, 12 Mar 2008 01:34:49 +0000 (01:34 +0000)
committerDave Hayes <dave@dragonflybsd.org>
Wed, 12 Mar 2008 01:34:49 +0000 (01:34 +0000)
usr.sbin/installer/Makefile [new file with mode: 0644]
usr.sbin/installer/dfuibe_installer/Makefile [new file with mode: 0644]
usr.sbin/installer/dfuife_curses/Makefile [new file with mode: 0644]
usr.sbin/installer/libaura/Makefile [new file with mode: 0644]
usr.sbin/installer/libdfui/Makefile [new file with mode: 0644]
usr.sbin/installer/libinstaller/Makefile [new file with mode: 0644]

diff --git a/usr.sbin/installer/Makefile b/usr.sbin/installer/Makefile
new file mode 100644 (file)
index 0000000..7b74c4e
--- /dev/null
@@ -0,0 +1,6 @@
+#      @(#)Makefile    8.1 (Berkeley) 5/31/93
+# $DragonFly: src/usr.sbin/installer/Makefile,v 1.1 2008/03/12 01:34:49 dave Exp $
+
+SUBDIR= libaura libdfui libinstaller dfuife_curses dfuibe_installer
+
+.include <bsd.subdir.mk>
diff --git a/usr.sbin/installer/dfuibe_installer/Makefile b/usr.sbin/installer/dfuibe_installer/Makefile
new file mode 100644 (file)
index 0000000..2b1b6ef
--- /dev/null
@@ -0,0 +1,61 @@
+#
+# $DragonFly: src/usr.sbin/installer/dfuibe_installer/Makefile,v 1.1 2008/03/12 01:34:49 dave Exp $
+
+BSDINS_DIR=${.CURDIR}/../../../contrib/bsdinstaller-1.1.6
+BSDINS_SRC=${BSDINS_DIR}/src
+
+PATCHES= 
+
+.PATH: ${BSDINS_SRC}/backend/installer
+
+BINDIR=        /usr/sbin
+
+PROG=  dfuibe_installer
+MAN=    
+SRCS=  flow.c fn_diagnostic.c fn_install.c fn_zonetab.c \
+        fn_configure.c fn_disk.c fn_subpart.c main.c \
+       aura.h dfui.h installer.h ${PATCHES}
+BINOWN=        root
+BINGRP=        wheel
+
+CFLAGS+= -I${BSDINS_SRC}/backend/installer -I.
+
+# This madness is because the installer sources reference aura includes
+# as <aura/mem.h> rather than <libaura/mem.h>
+aura.h:
+       ${LN} -sf ${BSDINS_SRC}/lib/libaura aura
+       /usr/bin/touch aura.h
+
+dfui.h:
+       ${LN} -sf ${BSDINS_SRC}/lib/libdfui dfui
+       /usr/bin/touch dfui.h
+
+installer.h:
+       ${LN} -sf ${BSDINS_SRC}/lib/libinstaller installer
+       /usr/bin/touch installer.h
+
+.if exists(${.OBJDIR}/../libaura)
+LIBAURADIR:=      ${.OBJDIR}/../libaura
+.else
+LIBAURADIR!=      cd ${.CURDIR}/../libaura; make -V .OBJDIR
+.endif
+LIBAURA:=         ${LIBAURADIR}/libaura.a
+
+.if exists(${.OBJDIR}/../libdfui)
+LIBDFUIDIR:=      ${.OBJDIR}/../libdfui
+.else
+LIBDFUIDIR!=      cd ${.CURDIR}/../libdfui; make -V .OBJDIR
+.endif
+LIBDFUI:=         ${LIBDFUIDIR}/libdfui.a
+
+.if exists(${.OBJDIR}/../libinstaller)
+LIBINSTALLERDIR:=      ${.OBJDIR}/../libinstaller
+.else
+LIBINSTALLERDIR!=      cd ${.CURDIR}/../libinstaller; make -V .OBJDIR
+.endif
+LIBINSTALLER:=         ${LIBINSTALLERDIR}/libinstaller.a
+
+DPADD+=        ${LIBAURA} ${LIBDFUI} ${LIBINSTALLER}
+LDADD+=        -L${LIBAURADIR} -L${LIBDFUIDIR} -L${LIBINSTALLERDIR} -linstaller -ldfui -laura
+
+.include <bsd.prog.mk>
diff --git a/usr.sbin/installer/dfuife_curses/Makefile b/usr.sbin/installer/dfuife_curses/Makefile
new file mode 100644 (file)
index 0000000..079e0db
--- /dev/null
@@ -0,0 +1,63 @@
+#
+# $DragonFly: src/usr.sbin/installer/dfuife_curses/Makefile,v 1.1 2008/03/12 01:34:49 dave Exp $
+
+BSDINS_DIR=${.CURDIR}/../../../contrib/bsdinstaller-1.1.6
+BSDINS_SRC=${BSDINS_DIR}/src
+
+PATCHES= 
+
+.PATH: ${BSDINS_SRC}/frontends/ncurses
+
+BINDIR=        /usr/sbin
+
+PROG=  dfuife_curses
+MAN=    
+SRCS=  curses_bar.c curses_form.c curses_util.c curses_widget.c curses_xlat.c main.c \
+       aura.h dfui.h installer.h ${PATCHES}
+BINOWN=        root
+BINGRP=        wheel
+
+CFLAGS+= -I${BSDINS_SRC}/frontends/ncurses -I.
+
+DPADD+= ${LIBPANEL} ${LIBNCURSES}
+LDADD+= -lpanel -lncurses
+
+# This madness is because the installer sources reference aura includes
+# as <aura/mem.h> rather than <libaura/mem.h>
+aura.h:
+       ${LN} -sf ${BSDINS_SRC}/lib/libaura aura
+       /usr/bin/touch aura.h
+
+dfui.h:
+       ${LN} -sf ${BSDINS_SRC}/lib/libdfui dfui
+       /usr/bin/touch dfui.h
+
+installer.h:
+       ${LN} -sf ${BSDINS_SRC}/lib/libinstaller installer
+       /usr/bin/touch installer.h
+
+.if exists(${.OBJDIR}/../libaura)
+LIBAURADIR:=      ${.OBJDIR}/../libaura
+.else
+LIBAURADIR!=      cd ${.CURDIR}/../libaura; make -V .OBJDIR
+.endif
+LIBAURA:=         ${LIBAURADIR}/libaura.a
+
+.if exists(${.OBJDIR}/../libdfui)
+LIBDFUIDIR:=      ${.OBJDIR}/../libdfui
+.else
+LIBDFUIDIR!=      cd ${.CURDIR}/../libdfui; make -V .OBJDIR
+.endif
+LIBDFUI:=         ${LIBDFUIDIR}/libdfui.a
+
+.if exists(${.OBJDIR}/../libinstaller)
+LIBINSTALLERDIR:=      ${.OBJDIR}/../libinstaller
+.else
+LIBINSTALLERDIR!=      cd ${.CURDIR}/../libinstaller; make -V .OBJDIR
+.endif
+LIBINSTALLER:=         ${LIBINSTALLERDIR}/libinstaller.a
+
+DPADD+=        ${LIBAURA} ${LIBDFUI} ${LIBINSTALLER}
+LDADD+=        -L${LIBAURADIR} -L${LIBDFUIDIR} -L${LIBINSTALLERDIR} -linstaller -ldfui -laura
+
+.include <bsd.prog.mk>
diff --git a/usr.sbin/installer/libaura/Makefile b/usr.sbin/installer/libaura/Makefile
new file mode 100644 (file)
index 0000000..bda1d28
--- /dev/null
@@ -0,0 +1,16 @@
+# $DragonFly: src/usr.sbin/installer/libaura/Makefile,v 1.1 2008/03/12 01:34:49 dave Exp $
+
+BSDINS_DIR=${.CURDIR}/../../../contrib/bsdinstaller-1.1.6
+BSDINS_SRC=${BSDINS_DIR}/src
+.PATH: ${BSDINS_SRC}/lib/libaura
+
+CFLAGS+=-I${BSDINS_SRC}/lib/libaura
+
+LIB=    aura
+
+SRCS+=  buffer.c dict.c fspred.c mem.c popen.c
+
+INTERNALLIB=            true
+
+.include <bsd.lib.mk>
+
diff --git a/usr.sbin/installer/libdfui/Makefile b/usr.sbin/installer/libdfui/Makefile
new file mode 100644 (file)
index 0000000..f1ba868
--- /dev/null
@@ -0,0 +1,23 @@
+# $DragonFly: src/usr.sbin/installer/libdfui/Makefile,v 1.1 2008/03/12 01:34:49 dave Exp $
+
+BSDINS_DIR=${.CURDIR}/../../../contrib/bsdinstaller-1.1.6
+BSDINS_SRC=${BSDINS_DIR}/src
+.PATH: ${BSDINS_SRC}/lib/libdfui
+
+CFLAGS+=-I${BSDINS_SRC}/lib/libdfui -I.
+
+LIB=    dfui
+
+SRCS+= conn_caps.c conn_npipe.c conn_tcp.c connection.c decode.c \
+       dump.c encode.c form.c lang.c system.c aura.h
+
+# This madness is because the installer sources reference aura includes
+# as <aura/mem.h> rather than <libaura/mem.h>
+aura.h:
+       ${LN} -sf ${BSDINS_SRC}/lib/libaura aura
+       /usr/bin/touch aura.h
+
+INTERNALLIB=            true
+
+.include <bsd.lib.mk>
+
diff --git a/usr.sbin/installer/libinstaller/Makefile b/usr.sbin/installer/libinstaller/Makefile
new file mode 100644 (file)
index 0000000..2bbdbe1
--- /dev/null
@@ -0,0 +1,30 @@
+# $DragonFly: src/usr.sbin/installer/libinstaller/Makefile,v 1.1 2008/03/12 01:34:49 dave Exp $
+
+BSDINS_DIR=${.CURDIR}/../../../contrib/bsdinstaller-1.1.6
+BSDINS_SRC=${BSDINS_DIR}/src
+.PATH: ${BSDINS_SRC}/lib/libinstaller
+
+CFLAGS+=-I${BSDINS_SRC}/lib/libdfui -I.
+
+LIB=    installer
+
+SRCS+= commands.c confed.c diskutil.c functions.c mount.c package.c survey.c uiutil.c \
+       aura.h dfui.h
+
+# This madness is because the installer sources reference aura includes
+# as <aura/mem.h> rather than <libaura/mem.h>
+aura.h:
+       ${LN} -sf ${BSDINS_SRC}/lib/libaura aura
+       /usr/bin/touch aura.h
+
+dfui.h:
+       ${LN} -sf ${BSDINS_SRC}/lib/libdfui dfui
+       /usr/bin/touch dfui.h
+
+INTERNALLIB=            true
+
+DPADD+= ${.CURDIR}/../libaura/libaura.a  ${.CURDIR}/../libdfui/libdfui.a
+LDADD+= -laura -ldfui
+
+.include <bsd.lib.mk>
+