[Midnightbsd-cvs] src: src/nrelease: Add nrelease, a way to build live cds from RELENG_0_1

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Nov 11 17:33:34 EST 2007


Log Message:
-----------
Add nrelease, a way to build live cds from RELENG_0_1

Tags:
----
RELENG_0_1

Added Files:
-----------
    src/nrelease:
        Makefile (r1.2.2.2)
    src/nrelease/root:
        autorun.bat (r1.1.2.2)
        autorun.inf (r1.1.2.2)
        autorun.pif (r1.1.2.2)
        cpignore (r1.1.2.2)
        index.html (r1.1.2.2)
        mbsd.ico (r1.1.2.2)
    src/nrelease/root/autorun:
        base.css (r1.1.2.2)
        font-normal.css (r1.1.2.2)
        mbsd_newlogo.png (r1.1.2.2)
    src/nrelease/root/boot:
        loader.conf (r1.1.2.2)
    src/nrelease/root/etc:
        disklabel.ad0s1 (r1.1.2.2)
        fstab (r1.1.2.2)
        fstab.example (r1.1.2.2)
        rc.conf (r1.1.2.2)

-------------- next part --------------
--- /dev/null
+++ nrelease/Makefile
@@ -0,0 +1,59 @@
+# $MidnightBSD: src/nrelease/Makefile,v 1.2.2.2 2007/11/11 22:33:31 laffer1 Exp $
+# $DragonFly: src/nrelease/Makefile,v 1.1 2003/12/01 09:59:43 dillon Exp $
+#
+ISODIR ?= /usr/release
+ISONAME ?= mbsd.iso
+ISOFILE ?= ${ISODIR}/${ISONAME}
+ISOROOT = ${ISODIR}/root
+OBJSYS= ${.OBJDIR}/../sys
+KERNCONF ?= GENERIC
+
+release:	check clean buildworld1 buildkernel1 buildiso mkiso
+
+quickrel:	check clean buildworld2 buildkernel2 buildiso mkiso
+
+realquickrel:	check clean buildiso mkiso
+
+check:
+	if [ ! -f /usr/local/bin/mkisofs ]; then \
+		echo "You need to install the cdrtools port for this target"; \
+		exit 1; fi
+
+buildworld1:
+	( cd ${.CURDIR}/..; make buildworld )
+
+buildworld2:
+	( cd ${.CURDIR}/..; make -DNOTOOLS -DNOCLEAN buildworld )
+
+buildkernel1:
+	( cd ${.CURDIR}/..; make buildkernel KERNCONF=${KERNCONF} )
+
+buildkernel2:
+	( cd ${.CURDIR}/..; make -DNOCLEAN buildkernel KERNCONF=${KERNCONF} )
+
+buildiso:
+	if [ ! -d ${ISOROOT} ]; then mkdir -p ${ISOROOT}; fi
+	( cd ${.CURDIR}/..; make DESTDIR=${ISOROOT} installworld )
+	( cd ${.CURDIR}/../etc; make DESTDIR=${ISOROOT} distribution )
+	cpdup -X cpignore -o ${.CURDIR}/root ${ISOROOT} -vv
+	( cd ${.CURDIR}/..; make DESTDIR=${ISOROOT} \
+		installkernel KERNCONF=${KERNCONF} )
+	mtree -deU -f ${.CURDIR}/../etc/mtree/BSD.local.dist -p ${ISOROOT}/usr/local/
+	mtree -deU -f ${.CURDIR}/../etc/mtree/BSD.var.dist -p ${ISOROOT}/var
+	cp /usr/local/bin/mkisofs ${ISOROOT}/usr/local/bin
+	cp /usr/local/man/man8/mkisofs.8.gz ${ISOROOT}/usr/local/man/man8
+
+mkiso:
+	( cd ${ISOROOT}; mkisofs -b boot/cdboot -no-emul-boot \
+		-R -J -V MidnightBSD -o ${ISOFILE} . )
+	( cd ${ISODIR}; md5 ${ISONAME} > ${ISONAME}.CHECKSUM.MD5 )
+	( cd ${ISODIR}; sha256 ${ISONAME} > ${ISONAME}.CHECKSUM.SHA256 )
+
+clean:
+	if [ -d ${ISOROOT} ]; then chflags -R noschg ${ISOROOT}; fi
+	if [ -d ${ISOROOT} ]; then rm -rf ${ISOROOT}; fi
+
+realclean:	clean
+	rm -rf ${OBJSYS}/${KERNCONF}
+
+.include <bsd.prog.mk>
--- /dev/null
+++ nrelease/root/autorun.inf
@@ -0,0 +1,3 @@
+[autorun]
+open=autorun.bat
+icon=mbsd.ico
--- /dev/null
+++ nrelease/root/autorun.bat
@@ -0,0 +1,3 @@
+ at echo Loading "index.html"...
+ at start index.html
+ at exit
--- /dev/null
+++ nrelease/root/cpignore
@@ -0,0 +1,3 @@
+# $MidnightBSD: src/nrelease/root/cpignore,v 1.1.2.2 2007/11/11 22:33:31 laffer1 Exp $
+cpignore
+CVS
--- /dev/null
+++ nrelease/root/index.html
@@ -0,0 +1,92 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
+	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+<title>MidnightBSD Project</title>
+<link rel="stylesheet" type="text/css" media="all" href="autorun/base.css" />
+</head>
+
+<body>
+
+<!-- BEGIN HEADER -->
+<div id="header">
+    <span id="logo">
+	    <img src="autorun/mbsd_newlogo.png" alt="MidnightBSD [logo]" />
+	</span>  
+</div>
+<!-- END HEADER -->
+
+<div id="content">
+
+<h2>Introduction</h2>
+
+<p style="text-indent: 3em; line-height: 1.5; margin-bottom: 20px;">MidnightBSD 
+is a desktop operating system for x86 compatible (including Pentium® and 
+Athlon™), and soon amd64 compatible (including Opteron™, 
+Athlon™64, and EM64T) architectures. It was originally based on 
+<a href="http://www.freebsd.org/">FreeBSD</a> 6.1 Beta.  The goal of the project 
+is to create a BSD with ease of use and simplicity in mind.</p>
+
+<h2>About Live CD</h2>
+
+<p style="text-indent: 3em; line-height: 1.5; margin-bottom: 20px;">This CD 
+provides a bootable version of MidnightBSD.  You can test MidnightBSD
+on your computer to verify hardware compatibility or to experiment with the
+system without installing it on your hard drive.  If you wish to install
+MidnightBSD on your hard drive, you will need an installation CD.</p>  
+
+<h2>Resources</h2>
+
+<p><a href="http://www.midnightbsd.org/">MidnightBSD.org</a> - The official 
+website</p>
+
+<p>Track development and changes to MidnightBSD with our 
+<a href="http://www.justjournal.com/users/mbsd">development blog</a>. </p>
+
+<p>Discuss MidnightBSD on our <a href="http://forums.midnightbsd.org/">forum</a>  
+or chat with us via IRC on FreeNode #midnightbsd.</p>
+
+<p><a href="http://bugreport.midnightbsd.org/">View/Report</a> Bugs.</p>
+
+<p>View our <a href="http://www.midnightbsd.org/mports/README.html">ports</a> 
+with descriptions.</p>
+
+<p><a href="http://www.cafepress.com/midnightbsd">Purchase</a> MidnightBSD 
+merchandise to support the project.</p>
+
+
+
+<table>
+	<thead>
+	<tr>
+		<th>Getting Source</th>
+	</tr>
+	</thead>
+	
+	<tbody>
+	<tr>
+		<td><a href="http://www.midnightbsd.org/cgi-bin/cvsweb.cgi" 
+		title="View the CVS Repository on the web">CVSWeb</a></td>
+	</tr>
+
+	<tr>
+		<td><a href="http://www.midnightbsd.org/developer/cvsup.html" 
+		title="Download source or mports">CVSup</a></td>
+	</tr>
+	</tbody>
+</table>
+
+</div>
+
+<!-- BEGIN FOOTER -->
+<div id="footer">
+    <p id="footertext"><a href="http://www.midnightbsd.org/copyright/index.html">Legal Notices</a> |
+    Copyright 2005-2007 Lucas Holt
+    <br />$MidnightBSD: src/nrelease/root/index.html,v 1.1.2.2 2007/11/11 22:33:31 laffer1 Exp $
+    </p>
+</div>
+<!-- END FOOTER -->
+
+</body>
+</html>
--- /dev/null
+++ nrelease/root/autorun/font-normal.css
@@ -0,0 +1,47 @@
+/* font-normal.css for Live CD
+   $MidnightBSD: src/nrelease/root/autorun/font-normal.css,v 1.1.2.2 2007/11/11 22:33:31 laffer1 Exp $
+*/
+body { 
+    font-family: Geneva, Arial, Helvetica, sans-serif;
+    font-size: 12px;
+}
+
+h1 {
+    font-size: 1.8em;
+}
+
+h2 {
+    font-size: 1.6em;
+}
+
+h3 {
+    font-size: 1.5em;
+}
+
+h4 {
+    font-size: 1.4em;
+}
+
+h5 {
+    font-size: 1.3em;
+}
+
+h6 {
+    font-size: 1.2em;
+}
+
+p {
+    font-size: 1em;
+}
+
+table td {
+    font-size: 1em;
+}
+
+table tr {
+    font-size: 1.3em;
+}
+
+form {
+    font-size: 1em;
+}
\ No newline at end of file
--- /dev/null
+++ nrelease/root/autorun/base.css
@@ -0,0 +1,215 @@
+/* CSS Document for Live CD
+   $MidnightBSD: src/nrelease/root/autorun/base.css,v 1.1.2.2 2007/11/11 22:33:31 laffer1 Exp $
+*/
+
+ at import "font-normal.css";
+
+body {
+	color: black; 
+	background: white;
+	margin: 0;
+	font: 12px Helvetica, Arial, sans-serif;
+	letter-spacing: 1px;
+	line-height: 1.3em;
+}
+
+h2 { 
+    color: #6dcff6;
+}
+
+h3 {
+	color: #6dcff6;
+	background-color: transparent;
+}
+
+a:link {
+	color: blue;
+	background-color: transparent;
+	text-decoration: underline;
+}
+
+a:visited {
+	color: navy;
+	background-color: transparent;
+	text-decoration: underline;
+}
+
+a:active {
+	color: #6dcff6;
+	background-color: transparent;
+	text-decoration: underline;
+}
+
+a:hover { 
+	color: #6dcff6;
+	background-color: transparent;
+	text-decoration: underline;
+}
+
+img { 
+	border: none;
+}
+
+#header {
+	width: 100%; 
+	height: 90px; 
+	background-color: #6dcff6; 
+	color: white;
+    margin: 0; 
+	padding-bottom: 0;
+}
+
+#content {
+    background: white; 
+	width: 700px; 
+	margin: 0;
+	margin-left: 160px; 
+	padding: 20px;
+}
+
+#logo {
+	margin-top: 20px; 
+	margin-left: 100px;
+}
+
+#rnav {
+	float: right; 
+	top: 0; 
+	left: 0;
+}
+
+#topnav {
+  text-align: left;
+  color: white;
+  background: black;
+  font-size: 0.9em;
+  margin: 0;
+  padding: 0;
+  height: 2em;
+  overflow: visible;
+  margin-top: 7px;
+}
+
+#topnavlist {
+  list-style: none;
+  margin: 0;
+  padding: 0;
+  padding-left: 140px;
+  padding-top: 1px;
+  height: 2em;
+}
+
+#topnavlist li {
+  padding: 0 1em 0 1.2em;
+  display: inline;
+  border-left: 1px solid #B4B4B4;
+}
+
+#topnavlist li a {
+  color: white;
+  font-weight: bold;
+  text-decoration: none;
+}
+
+#topnavlist li:first-child {
+  border-left: 0;
+  padding-left: 0;
+}
+
+/* Category Navigation */
+/*
+#sidenav, #sidenav ul, #sidenav ul ul {
+  margin: 0;
+  padding: 0;
+  list-style: none;
+  font-size: 1.0em;
+}
+
+#sidenav {
+  width: 150px;
+  background-color: #eee;
+  border: 1px solid #D4D4D4;
+}
+
+#sidenav ul {
+  padding: 8px 4px 12px 4px;
+}
+
+#sidenav ul ul {
+  background: none;
+  background-color: #eee;
+  margin: 0;
+  padding: 0;
+  list-style: none;
+}
+
+#sidenav ul ul li {
+  background: none;
+  border: none;
+}
+
+#sidenav ul li {
+  border-bottom: 1px solid #eee;
+  margin: 0;
+  padding-left: 12px;
+  background-image: url(../images/blt_red_arrow.png);
+  background-repeat: no-repeat;
+  background-position: 12px 0.65em;
+}
+
+#sidenav ul li.active {
+  font-weight: bold;
+}
+
+#sidenav ul li.active span {
+  display: none;
+}
+
+#sidenav ul li a {
+  display: block;
+  color: #990000;
+  text-decoration: underline;
+  padding: 3px 5px 3px 12px;
+  margin: 0;
+}
+
+#sidenav ul ul li a.active {
+  font-weight: bold;
+}
+
+#sidenav ul ul li a {
+  display: block;
+  padding-left: 12px;
+  margin: 0;
+}
+
+#sidenav ul li a:hover {
+  color: #000;
+}
+
+
+#sidewrap {
+  float: left;
+  width: 166px;
+  margin-top: 15px;
+  margin-right: -170px;
+}
+
+#contentwrap {
+  margin-left: 170px;
+  padding-top: 15px;
+}
+*/
+
+#footer {
+    border-top: thin dotted silver;
+	width: 700px; 
+	/*background-color: #6dcff6; */
+	color: black;
+    margin: 0; 
+    margin-left: 175px;
+    margin-top; 10px;
+	padding: 5px; 
+	left: 0;
+}
+
--- /dev/null
+++ nrelease/root/boot/loader.conf
@@ -0,0 +1,2 @@
+# $MidnightBSD: src/nrelease/root/boot/loader.conf,v 1.1.2.2 2007/11/11 22:33:32 laffer1 Exp $
+kernel_options="-C"
--- /dev/null
+++ nrelease/root/etc/fstab.example
@@ -0,0 +1,13 @@
+# $DragonFly: src/nrelease/root/etc/fstab.example,v 1.1 2003/12/01 21:14:03 dillon Exp $
+# Example fstab based on /README.
+#
+# Device		Mountpoint	FStype	Options		Dump	Pass#
+/dev/ad0s1a		/		ufs	rw		1	1
+/dev/ad0s1b		none		swap	sw		0	0
+/dev/ad0s1d		/var		ufs	rw		2	2
+/dev/ad0s1e		/tmp		ufs	rw		2	2
+/dev/ad0s1f		/usr		ufs	rw		2	2
+/dev/ad0s1g		/home		ufs	rw		2	2
+proc			/proc		procfs	rw		0	0
+# example MFS remount (for a pristine MFS filesystem do not use -C)
+#swap			/mnt		mfs	rw,-C,-s=4000	0	0
--- /dev/null
+++ nrelease/root/etc/rc.conf
@@ -0,0 +1,19 @@
+# $DragonFly: src/nrelease/root/etc/rc.conf,v 1.2 2007/01/12 06:56:24 corecode Exp $
+# rc.conf for CDRom boot.
+#
+# NOTE!  This rc.conf is designed for a CD boot.  When starting fresh on
+# your HD you can simply remove most or all of the lines below and then
+# add features as appropriate.
+#
+kern_securelevel_enable="NO"
+nfs_reserved_port_only="YES"
+sshd_enable="NO"
+usbd_enable="NO"
+syslogd_enable="NO"
+xntpd_enable="NO"
+nfs_client_enable="YES"
+nfs_server_enable="NO"
+rpc_umntall_enable="NO"
+rpcbind_program="/usr/sbin/portmap"
+sendmail_enable="NO"
+cron_enable="NO"
--- /dev/null
+++ nrelease/root/etc/fstab
@@ -0,0 +1,9 @@
+# $DragonFly: src/nrelease/root/etc/fstab,v 1.2 2004/10/15 02:43:51 dillon Exp $
+#
+# Device		Mountpoint	FStype	Options		Dump	Pass#
+/dev/acd0a		/		cd9660	ro,noauto	0	0
+md			/var		mfs	rw,-s32m	2	0
+md			/tmp		mfs	rw,-s32m	2	0
+#md			/etc		mfs	rw,-s8192	2	0
+md			/usr/local/etc	mfs	rw,-s16m	0	0
+proc			/proc		procfs	rw		0	0
--- /dev/null
+++ nrelease/root/etc/disklabel.ad0s1
@@ -0,0 +1,31 @@
+# $DragonFly: src/nrelease/root/etc/disklabel.ad0s1,v 1.2 2004/01/23 00:36:23 dillon Exp $
+# Example disklabel for ad0s1.  Once initialized via the instructions in
+# the README you can edit the label and create partitions for your 
+# filesystems.  The top of the disklabel should already contain reasonable
+# values so you should only have to edit the bottom part.  Here is an example
+#
+
+8 partitions:
+#        size   offset    fstype   [fsize bsize bps/cpg]
+  a:   256m        0    4.2BSD     1024  8192	99
+  b:  1024m	   *      swap              
+  c: <leave this line untouched>
+  d:   256m	   *    4.2BSD     1024  8192	99
+  e:   256m	   *    4.2BSD     1024  8192	99
+  f:  8192m	   *    4.2BSD     2048 16384	99
+  g:	*	   *    4.2BSD     2048 16384	99
+
+# The disklabel program accepts 'm' for megabytes, and '*' to auto-fill-in
+# the offset.  A '*' in the size field means 'the rest of the disk'.
+# disklabel may get confused due to there being too many '*'s in which case
+# just remove the g: partition, generate the disklabel, then edit it again
+# and g back in.
+#
+# ad0s1a:	/
+# ad0s1b:	swap	(suggest no less then 256m and at least 1xmain-memory)
+# ad0s1c:	(represents the whole-disk, generally leave this one alone)
+# ad0s1d:	/var
+# ad0s1e:	/tmp
+# ad0s1f:	/usr	(suggest no less then 4096m but 1024m ok in a crunch)
+# ad0s1g:	/home	(all remaining disk space)
+# ad0s1h:	(unused)


More information about the Midnightbsd-cvs mailing list