Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

c++ - Packaging Linux software while keeping a sane file structure -


so have created piece of software wanna package , post arch linux user repositories, aur, -should note, have never packaged distro before - , have got packaged , installed on own machine via arch's package manager pacman successfully, wondering how on earth gonna structure folders , files?

normally when wrote software, use structure:

build/ | src/ | makefile

as minimum, , in case of piece of software, makefile nothing more compile .cpp file src/ build/. make arch package, had create .rc file, use program daemon , pkgbuild file, file tells makepkg program how build installer-package - these 2 files, though, specific arch. if wanna package program debian, need set of files too, these files work debian. now, can't put .rc file , pkgbuild file in programs root folder, since "be mess" if had files build package debian, put distro-specific files? need have in programs root folder -at-least- able keep track of it, , initial thought go structure distro/arch/ arch linux specific files, , pkgbuild file run makefile in programs root folder , copy compiled file build/ distro/arch/ before did else, discovered couldnt pkgbuild work way, , people on #archlinux on freenode said not smart idea.

so put distro specific files? if knew had provide program arch, easy structure makepkg, dont imprison softwarelike that, , imagine providing packages other mayor distros debian, how achieve while keeping sane file structure?

regards, chris buchholz

very find in tarballs directory called 'debian' has debian specific files in it. go same route , create directory 'archlinux' , put files there.

then go on , put file readme in archlinux directory explains how use pkgbuild properly.

one solution write rule makefile 'package-arch' copies pkgbuild root directory, runs makepkg, deletes redundant pkgbuild.

it's hackish, write bug report arch people fix limitation. however, did try makepkg -p archlinux/pkgbuild?


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -