debian/0000755000000000000000000000000012163274612007172 5ustar debian/rules0000755000000000000000000000354112157546400010255 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PKG = boinc-app-milkyway configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. cd bin && $(MAKE) -f make.linux touch $@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp # Add here commands to clean up after the build process. cd bin && $(MAKE) -f make.linux clean_all dh_clean debian/extra/app_info.xml install: build dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package into debian/boinc-app-milkyway. cp bin/milkyway debian/$(PKG)/usr/lib/$(PKG)/ cp bin/app_info.xml debian/extra/app_info.xml # Build architecture-independent files here. binary-indep: install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: install dh_testdir dh_testroot dh_installchangelogs dh_installdocs # dh_installexamples dh_install # dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_python # dh_installinit # dh_installcron # dh_installinfo # dh_installman dh_link dh_strip dh_compress dh_fixperms # dh_perl # dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/patches/0000755000000000000000000000000012163242072010614 5ustar debian/patches/fix-ftbfs.patch0000644000000000000000000001114312157556723013543 0ustar --- boinc-app-milkyway-0.18d.orig/bin/make.linux +++ boinc-app-milkyway-0.18d/bin/make.linux @@ -1,37 +1,56 @@ -APP_VERSION = 0.18 -APP_NAME = your_app_name +REVISION := 18 +APP_VERSION := 0.$(REVISION) -BOINC_DIR = /software/boinc-6.3.14-0/pkg/include/boinc +ARCH := $(shell uname -m) +BOINC_DIR = /usr/include/BOINC BOINC_API_DIR = $(BOINC_DIR)/api BOINC_LIB_DIR = $(BOINC_DIR)/lib -BOINC_LINK_DIR = /projects/wcl/software/boinc -BOINC_LIB_LINK_DIR = $(BOINC_LINK_DIR)/lib -BOINC_API_LINK_DIR = $(BOINC_LINK_DIR)/api VARIANTFLAGS = -DGMLE_BOINC -DBOINC_APP_VERSION=$(APP_VERSION) -DBOINC_APP_NAME='"$(APP_NAME)"' -CXXFLAGS_ALL = $(VARIANTFLAGS) \ +CXXFLAGS = $(VARIANTFLAGS) \ -g \ - -I$(BOINC_DIR) + -O2 -ftree-vectorize -funroll-loops \ + -I$(BOINC_DIR) \ + -I$(BOINC_API_DIR) \ + -I$(BOINC_LIB_DIR) + +CXX := g++ +#LDFLAGS := -Wl -static -static-libgcc +LDFLAGS := -Wl,--export-dynamic + +ifeq ($(ARCH),i686) +CXXFLAGS += -m32 +LDFLAGS += -L/usr/X11R6/lib +APP_SUFFIX := pc-linux-gnu +else + +ifeq ($(ARCH),x86_64) +CXXFLAGS += -msse2 +#LDFLAGS += -L/usr/local/lib -L/usr/X11R6/lib +APP_SUFFIX := pc-linux-gnu +else + +ifeq ($(ARCH),parisc64) +ARCH := parisc +APP_SUFFIX := unknown-linux-gnu +else + +APP_SUFFIX := unknown-linux-gnu + +endif +endif +endif + +#APP_NAME := milkyway_$(APP_VERSION)_$(ARCH)-$(APP_SUFFIX) +APP_NAME := milkyway +APP_DIR := ../astronomy +FGDO_DIR := .. +SCHED_DIR := $(FGDO_DIR)/evaluation +SEARCH_DIR := $(FGDO_DIR)/searches +UTIL_DIR := $(FGDO_DIR)/util -CXX_i686 = g++ -CXXFLAGS_i686 = -m32 -O2 -ftree-vectorize -funroll-loops $(CXXFLAGS_ALL) -LDFLAGS_i686 = -L/usr/X11R6/lib -L../../linux32_libboinc -#LDFLAGS_i686 = -L$(BOINC_LIB_LINK_DIR) -L$(BOINC_API_LINK_DIR) - -CXX_x86_64 = g++ -CXXFLAGS_x86_64 = -O2 -msse2 -ftree-vectorize -funroll-loops $(CXXFLAGS_ALL) -LDFLAGS_x86_64 = -L/usr/local/lib -#LDFLAGS_x86_64 = -L/usr/local/lib -L/usr/X11R6/lib -#LDFLAGS_x86_64 = -L$(BOINC_LIB_LINK_DIR) -L$(BOINC_API_LINK_DIR) - -APP_DIR = ../astronomy -FGDO_DIR = .. -SCHED_DIR = $(FGDO_DIR)/evaluation -SEARCH_DIR = $(FGDO_DIR)/searches -UTIL_DIR = $(FGDO_DIR)/util - -APP_OBJS = \ +APP_OBJS := \ $(APP_DIR)/boinc_astronomy.o \ $(APP_DIR)/atSurveyGeometry.o \ $(APP_DIR)/numericalIntegration.o \ @@ -44,33 +63,28 @@ APP_OBJS = \ $(APP_DIR)/star_points.o \ $(APP_DIR)/evaluation_optimized.o \ $(APP_DIR)/evaluation_state.o -SEARCH_OBJS = \ +SEARCH_OBJS := \ $(SEARCH_DIR)/search_parameters.o -UTIL_OBJS = \ +UTIL_OBJS := \ $(UTIL_DIR)/io_util.o \ $(UTIL_DIR)/settings.o -PROGS = milkyway_$(APP_VERSION)_i686-pc-linux-gnu milkyway_$(APP_VERSION)_x86_64-pc-linux-gnu - -all: $(PROGS) +all: milkyway app_info.xml -app_i686: OBJ_CXX = $(CXX_i686) -app_i686: OBJ_CXXFLAGS = $(CXXFLAGS_i686) -app_i686: $(APP_OBJS) $(SEARCH_OBJS) $(UTIL_OBJS) $(BOINC_API_LINK_DIR)/libboinc_api.a $(BOINC_LIB_LINK_DIR)/libboinc.a - $(CXX_i686) $(LDFLAGS_i686) $(CXXFLAGS_i686) -Wl --export_dynamic -o milkyway_$(APP_VERSION)_i686-pc-linux-gnu $(APP_OBJS) $(SEARCH_OBJS) $(UTIL_OBJS) -lm -lboinc_api -lboinc -pthread - -app_x86_64: OBJ_CXX = $(CXX_x86_64) -app_x86_64: OBJ_CXXFLAGS = $(CXXFLAGS_x86_64) -app_x86_64: $(APP_OBJS) $(SEARCH_OBJS) $(UTIL_OBJS) $(BOINC_API_LINK_DIR)/libboinc_api.a $(BOINC_LIB_LINK_DIR)/libboinc.a - $(CXX_x86_64) $(LDFLAGS_x86_64) $(CXXFLAGS_x86_64) -Wl -static -static-libgcc -o milkyway_$(APP_VERSION)_x86_64-pc-linux-gnu $(APP_OBJS) $(SEARCH_OBJS) $(UTIL_OBJS) -lm -lboinc_api -lboinc -pthread +milkyway: $(APP_OBJS) $(SEARCH_OBJS) $(UTIL_OBJS) + $(CXX) $(LDFLAGS) $(CXXFLAGS) -o $(APP_NAME) $(APP_OBJS) $(SEARCH_OBJS) $(UTIL_OBJS) -lm -lboinc_api -lboinc -pthread .C.o: - $(OBJ_CXX) $(OBJ_CXXFLAGS) $(INC) -Wall -x c++ -c $< -o $@ + $(CXX) $(CXXFLAGS) $(INC) -Wall -x c++ -c $< -o $@ .c.o: - $(OBJ_CXX) $(OBJ_CXXFLAGS) $(INC) -Wall -x c++ -c $< -o $@ + $(CXX) $(CXXFLAGS) $(INC) -Wall -x c++ -c $< -o $@ clean: - rm -f $(APP_OBJS) $(UTIL_OBJS) $(SEARCH_OBJS) + rm -f $(APP_OBJS) $(UTIL_OBJS) $(SEARCH_OBJS) $(APP_NAME) clean_all: - rm -f $(PROGS) $(APP_OBJS) $(UTIL_OBJS) $(SEARCH_OBJS) + rm -f $(APP_OBJS) $(UTIL_OBJS) $(SEARCH_OBJS) $(APP_NAME) app_info.xml + +app_info.xml: app_info.xml.tpl + @echo "Generating app_info.xml" + @sed -e s/APP_NAME/$(APP_NAME)/g -e s/REVISION/$(REVISION)/g $< > $@ --- boinc-app-milkyway-0.18d.orig/bin/app_info.xml.tpl +++ boinc-app-milkyway-0.18d/bin/app_info.xml.tpl @@ -0,0 +1,17 @@ + + +milkyway + + +APP_NAME + + + +milkyway +REVISION + +APP_NAME + + + + debian/patches/series0000644000000000000000000000002012157557034012033 0ustar fix-ftbfs.patch debian/compat0000644000000000000000000000000212157546461010377 0ustar 9 debian/extra/0000755000000000000000000000000012160021404010277 5ustar debian/extra/milkyway.cfg0000644000000000000000000000024312157546675012661 0ustar [DEFAULT] project = milkyway app_info = /usr/share/boinc-app-milkyway/app_info.xml apps = /usr/lib/boinc-app-milkyway/milkyway urls = milkyway.cs.rpi.edu_milkyway debian/boinc-app-milkyway.install0000644000000000000000000000015712157546327014311 0ustar debian/extra/app_info.xml usr/share/boinc-app-milkyway debian/extra/milkyway.cfg usr/share/boinc-apps/info debian/boinc-app-milkyway.prerm0000644000000000000000000000164012157546573013771 0ustar #!/bin/sh # prerm script for boinc-app-milkyway # based on prerm script for boinc-app-seti set -e BOINC_DIR=/var/lib/boinc-client init_boinc_client() { if which invoke-rc.d >/dev/null 2>&1; then invoke-rc.d boinc-client $1 else /etc/init.d/boinc-client $1 fi } case "$1" in remove) # Stop the core client and wait one second to give it the # chance to shut down gracefully before removing the M@h # application. Start the client then again. init_boinc_client stop sleep 1 update-boinc-applinks --remove --project=milkyway --data-dir=$BOINC_DIR init_boinc_client start ;; upgrade) update-boinc-applinks --remove --project=milkyway --data-dir=$BOINC_DIR ;; failed-upgrade|deconfigure) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/changelog0000644000000000000000000000317412163274445011055 0ustar boinc-app-milkyway (0.18d-4) unstable; urgency=low * Fixed lintian warning (dropped -1 on build-dep 7.1.21+dfsg-1) -- Gianfranco Costamagna Fri, 28 Jun 2013 13:52:18 +0200 boinc-app-milkyway (0.18d-3) unstable; urgency=low * Rebuild against boinc 7.1.21+dfsg-1 to fix a FTBFS in ubuntu saucy. -- Gianfranco Costamagna Thu, 27 Jun 2013 16:40:32 +0200 boinc-app-milkyway (0.18d-2) unstable; urgency=low * Fixed a FTBFS because of missing headers files. * Bumped debian/compat to 9. * Bumped standard version to 3.9.4, no changes required. * Refactored debian directory. * Added myself to uploaders. -- Gianfranco Costamagna Mon, 17 Jun 2013 10:33:23 +0200 boinc-app-milkyway (0.18d-1.1) unstable; urgency=low * Non-maintainer upload. * Fix "FTBFS: g++: error: unrecognized option '--export_dynamic'": add patch from Ubuntu / Daniel T Chen: - bin/make.linux: Correct syntax that broke the build. Fixes FTBFS. (LP: #765947) (Closes: #628256) -- gregor herrmann Mon, 24 Oct 2011 16:53:59 +0200 boinc-app-milkyway (0.18d-1) unstable; urgency=low * Upload to unstable with proper version number -- Thibaut VARENE Fri, 10 Apr 2009 11:25:34 +0200 boinc-app-milkyway (0.18-1) experimental; urgency=low * New upstream release -- Thibaut VARENE Tue, 17 Feb 2009 20:50:00 +0100 boinc-app-milkyway (0.16-1) experimental; urgency=low * Initial release (Closes: #512705) -- Thibaut VARENE Tue, 10 Feb 2009 12:22:45 +0100 debian/copyright0000644000000000000000000000276412157546500011137 0ustar This package was debianized by: Thibaut VARENE on Tue, 10 Feb 2009 12:22:45 +0100 It was downloaded from: http://milkyway.cs.rpi.edu/milkyway/download/code_release/ Upstream Authors: Travis Desell, Dave Przybylo, Nathan Cole, Boleslaw Szymanski, Heidi Newberg, Carlos Varela, Malik Magdon-Ismail. Copyright: Copyright (C) 2008-2009 Travis Desell, Dave Przybylo, Nathan Cole, Boleslaw Szymanski, Heidi Newberg, Carlos Varela, Malik Magdon-Ismail and Rensselaer Polytechnic Institute License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3'. The Debian packaging is: Copyright (C) 2009, Thibaut VARENE and is licensed under the GPL, see above. debian/control0000644000000000000000000000347712163274611010607 0ustar Source: boinc-app-milkyway Section: science Priority: optional Maintainer: Debian BOINC Maintainers Uploaders: Thibaut VARENE , Gianfranco Costamagna Build-Depends: debhelper (>= 9), boinc-dev (>= 7.1.21+dfsg) | libboinc-app-dev (>= 7.1.21+dfsg) Standards-Version: 3.9.4 Homepage: http://milkyway.cs.rpi.edu/ Package: boinc-app-milkyway Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, boinc-client Description: Milkyway@home application for the BOINC client The goal of Milkyway@Home is to use the BOINC platform to harness volunteered computing resources in creating a highly accurate three dimensional model of the Milky Way galaxy using data gathered by the Sloan Digital Sky Survey. This project enables research in both astroinformatics and computer science. . In computer science, the project is investigating different optimization methods which are resilient to the fault-prone, heterogeneous and asynchronous nature of Internet computing; such as evolutionary and genetic algorithms, as well as asynchronous newton methods. While in astroinformatics, Milkyway@Home is generating highly accurate three dimensional models of the Sagittarius stream, which provides knowledge about how the Milky Way galaxy was formed and how tidal tails are created when galaxies merge. . This package contains the Milkyway@home application for the BOINC distributed computing platform. Note that this package has been primarily created for users of architectures for which Milkyway@home does not provide its application. If your architecture is x86 or AMD64 the BOINC client automatically downloads the latest Milkyway@home application if you participate in this project. There is no need to install this package then. debian/source/0000755000000000000000000000000012160021404010454 5ustar debian/source/format0000644000000000000000000000001412157546101011676 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000074712157546662010245 0ustar # Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 # Uncomment to examine a Webpage # #http://www.example.com/downloads.php boinc-app-milkyway-(.*)\.tar\.gz # Uncomment to examine a Webserver directory http://milkyway.cs.rpi.edu/milkyway/download/code_release/mw_v(.*)\.tar debian/README.Debian0000644000000000000000000000101712157546516011242 0ustar boinc-app-milkyway for Debian ----------------------------- This package creates symlinks for the Milkyway@home binary and its app_info.xml file in Debian's default BOINC data directory /var/lib/boinc-client. If you are not using the default data directory you need to create these symlinks yourself. Refer to the paragraph "Installing and configuring BOINC application packages" in /usr/share/doc/boinc-client/README.Debian for detailed instructions. -- Thibaut VARENE Tue, 10 Feb 2009 12:22:45 +0100 debian/boinc-app-milkyway.postinst0000644000000000000000000000154412157546647014534 0ustar #!/bin/sh # postinst script for boinc-app-milkyway # based on postinst script for boinc-app-seti set -e BOINC_DIR=/var/lib/boinc-client init_boinc_client() { if which invoke-rc.d >/dev/null 2>&1; then invoke-rc.d boinc-client $1 else /etc/init.d/boinc-client $1 fi } case "$1" in configure) update-boinc-applinks --create --project=milkyway --data-dir=$BOINC_DIR chown -R boinc:boinc $BOINC_DIR/projects 2>/dev/null || true # Restart the BOINC core client after update-boinc-applinks has # created the symlinks for the anonymous application(s) and the # app_info.xml file. init_boinc_client restart ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/boinc-app-milkyway.dirs0000644000000000000000000000012212157546615013574 0ustar usr/lib/boinc-app-milkyway usr/share/boinc-app-milkyway usr/share/boinc-apps/info