Skip to content

Commit

Permalink
nrelease - gui build adjustments
Browse files Browse the repository at this point in the history
* Remove packages that failed to build.  Unfortunately rxvt was one of them.
  Note that I did some manual build hacks to other packages to build
  which aren't committed to pkgsrc.

* Fix size calculation for usb disk img.

* Adjust fluxbox menu firefox3->firefox and urxvt->xterm.
  • Loading branch information
Matthew Dillon committed Oct 25, 2010
1 parent e2bc926 commit c7fd795
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
20 changes: 13 additions & 7 deletions nrelease/Makefile
Expand Up @@ -103,6 +103,13 @@ OLD_PKGSRC_PACKAGES?= cdrtools-2.01.01.27nb1 \
REQ_ROOTSKELS= ${.CURDIR}/root
ROOTSKELS?= ${REQ_ROOTSKELS}

# LIST OF PACKAGES NOT INCLUDED DUE TO BUILD ISSUES:
# chat/pidgin textproc/enchant dependency is broken
# x11/rxvt-unicode broken configure
# net/nmap tries to access openssl/md2.h which does not
# exist.
# sysutils/idesk dying on link __sync_fetch_and_add_4
#
.if make(gui)
ISOFILE?= ${ISODIR}/dfly-gui.iso
IMGFILE?= ${ISODIR}/dfly-gui.img
Expand All @@ -117,11 +124,9 @@ PKGSRC_PACKAGES+= meta-pkgs/modular-xorg-apps \
shells/zsh \
editors/emacs \
editors/vim \
chat/pidgin \
chat/irssi \
chat/xchat \
x11/modular-xorg-server \
x11/rxvt-unicode \
x11/eterm \
lang/perl5 \
editors/nano \
Expand All @@ -130,11 +135,9 @@ PKGSRC_PACKAGES+= meta-pkgs/modular-xorg-apps \
archivers/zip \
security/sudo \
www/links-gui \
net/nmap \
net/wget \
fonts/terminus-font \
net/rsync \
sysutils/idesk \
time/asclock \
misc/screen
ROOTSKELS+= ${.CURDIR}/gui
Expand Down Expand Up @@ -372,11 +375,14 @@ customizeiso:
${CHROOT_CMD} /etc/periodic/weekly/310.locate
umount ${ISOROOT}/dev

# no iso is generated for gui builds, just img.
#
mkiso:
.if !make(gui)
( cd ${ISOROOT}; ${PKGBIN_MKISOFS} -b boot/cdboot -no-emul-boot \
-R -J -o ${ISOFILE} \
-V "DragonFly `${.CURDIR}/../tools/gitrev.sh | cut -c -22`" . )

.endif

mkimg:
if [ ! -d ${IMGMNT} ]; then mkdir -p ${IMGMNT}; fi
Expand All @@ -389,9 +395,9 @@ mkimg:
.else
@echo "STEP: determine required image size in 1GB steps"
sz=`du -ck ${ISOROOT} | tail -n 1 | cut -f 1`; \
sz=`bc -e "(($${sz}) * 1.15 + 999999999) / 1000000000" -equit | \
sz=`bc -e "(($${sz}) * 1.15 + 999999) / 1000000" -equit | \
cut -f1 -d.`; \
sz=`bc -e "(($${sz}) * 976)" -equit | cut -f1 -d.`; \
sz=`bc -e "(($${sz}) * 953)" -equit | cut -f1 -d.`; \
rm -f ${IMGFILE}; \
truncate -s $${sz}M ${IMGFILE};
.endif
Expand Down
4 changes: 2 additions & 2 deletions nrelease/gui/root/.fluxbox/menu
Expand Up @@ -15,8 +15,8 @@
# you can change the menu name in .fluxbox/init to:
# session.menuFile: /home/you/.fluxbox/my-menu
[begin] ()
[exec] (Terminal) {urxvt} <~/.fluxbox/icons/terminal.png>
[exec] (Firefox) {firefox3} <~/.fluxbox/icons/firefox.png>
[exec] (Terminal) {xterm} <~/.fluxbox/icons/terminal.png>
[exec] (Firefox) {firefox} <~/.fluxbox/icons/firefox.png>
[exec] (Pidgin) {pidgin} <~/.fluxbox/icons/pidgin.png>
[exec] (Xchat) {xchat} <~/.fluxbox/icons/xchat.png>
[exec] (xpdf) {xpdf} <~/.fluxbox/icons/xpdf.png>
Expand Down

0 comments on commit c7fd795

Please sign in to comment.