OpenSolaris
Collectives
Discussions
Documentation
Download
Source Browser
Free CD
Log-in
|
en
Project webstack
:
Creating Web Stack Components
Top Menu
Show
:
Comments
Attachments
History
Information
Print
:
Print
Print preview
Export as PDF
Export as RTF
Export as HTML
Export as XAR
Wiki code for
Creating Web Stack Components
Hide Line numbers
1: == Adding a component into the Web Stack Project Repository 2: 3: The Web Stack Project Repository is here: [[http://pkg.opensolaris.org/webstack>>http://pkg.opensolaris.org/webstack/]] 4: 5: If you are interested in adding a new web tier component (and becoming its maintainer), read on! 6: 7: === Summary of Steps 8: 9: 1. Sun legal approvals 10: 1. Create a buildable workspace which can hook into Web Stack builds 11: 1. Create a proposal, discuss with webstack-discuss 12: 1. Request a Web Stack source repository and check it in 13: 1. Iterate between community discussion and working on the build 14: 15: === High-level Detail 16: 17: 1. Sun legal approvals 18: 19: Unfortunately the first stage of the process can only be done inside Sun as it involves getting various internal approvals for publishing the component. Contact webstack-discuss to request a Sun employee to help process these approvals. 20: 21: For external contributors, a [[contributor agreement>>Main.sun_contributor_agreement]] is also needed. 22: 23: 2. Create a Buildable Workspace 24: 25: You’ll probably start by creating a first cut of the build workspace privately just to explore what it takes to build the component and make it work since you will need some of this information in order to write a first draft proposal. 26: 27: Strictly speaking the only requirements in order to hook up into the Web Stack build system are as follows: 28: 29: * There must be a Makefile at the top level of the source tree. 30: * The Web Stack RE process will set PKG_REPO to point to the relevant IPS repository and call ’make publish’. Thus, your Makefile must have a ’publish’ target which will publish the built package into IPS. 31: * The Web Stack RE process will set PKG_REPO to point to the relevant IPS repository and call ’make publish-src’. Thus, your Makefile must have a ’publish-src’ target. Source packages are optional so this can be an empty target or a target which publishes a -source package to IPS. 32: 33: In practice, while not required, you should most likely take advantage of the webstack-dev-tools package which helps you accomplish this integration with much less manual work. Refer to the Build Details section later in this document for more information. 34: 35: 3. Proposal 36: 37: Next, create a document describing the details of the package. Important details to include are: 38: 39: * An introduction/summary of the component being proposed. What is it, what does it do, who will typically use it, some common use cases. This section should be short, but do provide enough information to those who are unfamiliar with the component to have a sense of what is it about. 40: * File layout - what directories and files will the package deliver where? Which files can the user edit? What files can the component create during runtime? And any other file details... 41: * Package name(s) 42: * Configuration details - many components have a number of compile-time configuration options. Which ones will be enabled and/or disabled and why? 43: * Dependencies - does the new component depend on any interfaces (APIs, file locations, CLIs and such) from any other components? Which ones? 44: * Interfaces - what interfaces does this new component make available for consumers? How stable do you expect these interfaces to be over time? Read the [[interface taxonomy>>Community Group arc.interface-taxonomy]] for some background on this. 45: * In short, the proposal should serve as a draft for a possible future [[ARC case>>Community Group arc.WebHome]]. While we don’t require an approved ARC case for Web Stack project repository inclusion you’ll want to write it with this purpose in mind because it’ll help collect all the important information and if a decision is made to formalize the component later then you’ll have the materials ready to go without duplicating effort. Check out some past Web Stack ARC cases for inspiration: [[Ruby>>Community Group arc.ruby-txt]], [[Apache 2.2.6 update>>Community Group arc.apache-txt]]. 46: 47: The proposal and implementation can be done as an iterative process so don’t worry about making a perfect proposal in the first draft. Start with just enough information so others on webstack-discuss can start giving feedback. 48: 49: 4. Repository 50: 51: Request a source repository to be created for this project. If you have a contact already from step#1, ask the same person. Once it is ready, populate it with your build tree. 52: 53: 5. Iterate... 54: 55: After the build is stable, we’ll add it to the nightly build system which in turn will cause it to show up (a bit later) on the Web Stack project repository. Ask everyone to install the package and try it out and give feedback. Continue improving the integration details until everyone is happy ;-) 56: 57: === Build Details 58: 59: Note we may have (at least) two kinds of source repositories under Web Stack. This document covers components which only support building for (and on) OpenSolaris. There will be some component repositories which support multi-platform builds because they are also used for the [[Sun Web Stack>>http://www.sun.com/software/solaris/amp/]] product. This will be documented elsewhere. 60: 61: As mentioned in the previous section, technically the only build requirement is the component must support a ’publish’ target and a ’publish-src’ target (which may be empty). 62: 63: But in practice you will want to both conform to the layout and style of other Web Stack components and you’ll want to leverage the webstack-dev-tools package if at all possible. 64: 65: A build system is best described by example, so use existing Web Stack components such as varnish, nginx or others as a template when creating a new one. 66: 67: Some key points to follow: 68: 69: * Store the upstream source archive (tarball) **as-is** at the top level of the source tree. 70: * Add target to ’extract’ the tarball into ./build/$COMPONENTNAME/ dir. 71: * Add target to ’configure’ (if applicable) it and ’build’ it. If you must change the source (try to avoid it), create a ’patches’ directory and store your patch files (one patch per bug) in there and apply them before building. Never modify the upstream tarball. 72: * Avoid generating any build-time content outside of the ./build/ directory. This way we can just add ’build’ to .hgignore. 73: * Add a target to ’install’ the component into ./build/proto/ directory. The ./build/proto/ dir contains all the filesystem entries delivered by this component. For example if the package will deliver /usr/bin/foo, you’ll have ./build/proto/usr/bin/foo. There are two approaches for doing the ’install’ target: 74: ** (Preferred!) Use wsproto tool by creating a template file (./etc/wsproto.data) which specifies the layout and files and package details. The just call wsproto from the ’install’ target to do the work. Again, examples help here more than text so take a look at existing Web Stack components. Also, after installing the webstack-dev-tools package (’pkg install webstack-dev-tools’) read the comments on /usr/bin/wsproto for the latest info on how to use it. 75: ** Alternatively, use the ’make install’ target provided by most upstream components to install it into ./build/proto/ area. While this may work well most of the time, you’ll want to avoid it if at all possible due to the next step. 76: * Add a target to ’publish’ the component into IPS. If you used wsproto above, your work is done already. Simply call the ./build/proto/publish script which wsproto created and it takes care of publishing the package to IPS. If not, you’ll have to manually handle defining and publishing the package to IPS. So try to use wsproto (if it doesn’t work let us know why and hopefully it can be enhanced instead). 77: * If you want to support a -source package add a publish-src target to publish it. If not, just create an empty publish-src target. webstack-dev-tools includes ’wsmksrc’, a tool to help set up the source packages. At this point it is fairly rudimentary though and source packages are themselves just an experiment, so they’re not required. 78: * Create a METADATA toplevel file containing the OSR number and BUILDDEPS packages. 79: 80: Please note the Web Stack build infrastructure (layout, tools and invocation) are all relatively new and subject to continuous improvement. We’ll almost certainly change it a number of times in ways that break the builds. We’ll either fix your build or work with you to fix it, but do be prepared for some growing pains.
Search
Collectives
Community Group
Academic and Research
Accessibility
Advocacy
Appliances
Approachability
Architecture Process and Tools
BrandZ
Chinese Users
Community Advisory Board
Databases
Desktop
Device Drivers
Distribution
Documentation
DTrace
Emerging Platforms
Fault Management
Games on OpenSolaris
HA Clusters
HPC Developer
Installation and Packaging
Internationalization and Localization
Laptop
Logical Domains
Modular Debugger (MDB)
Networking
NFS
Observability
OpenSolaris Governing Board (OGB)
OpenSolaris Printing
OS/Net (ON)
Performance
Power Management
PowerPC
Security
Service Management Facility (smf(5))
Software Porters
Solaris Volume Manager
Storage
Systems Administration Community Group
Testing
Tools Home
Unix File Systems (UFS)
Website Community
X Window System
Xen
ZFS
Zones
Project
ADSL Modem Enhancement
ARC Process Definition
ARM Platform Port
Automatic Data Migration
BIND Update
Bluetooth Stack & Drivers
Brocade FC HBA - Initiator
Brocade FC HBA - Target
Brussels - unified network link configuration
Caiman, Solaris Install Revisited
Celeste
Český portál
Chime Visualization Tool for DTrace
CIFS client for Solaris
CIFS Server
Clearview: Network Interface Coherence
Cluster Agent: Informix Dynamic Server
Cluster Agent: OpenSolaris Container
Cluster Agent: OpenSolaris xVM
Cluster Agent: Oracle E-Business Suite
Cluster agent: PostgreSQL
Cluster Agent: Samba
Cluster Agent: Tomcat
CMT
Coarse Data Flow Parallelism
Colorado: Open HA Cluster on OpenSolaris
Command Assistant
Common Array Manager
Companion - /opt/sfw: Free and Open Source software
COMSTAR: Common Multiprotocol SCSI Target
Content
Contest
CPU Observability
Credentials Process Groups
Crossbow: Network Virtualization and Resource Control
Crypto KMS Agent Toolkit
Cryptographic Framework
Data Migration Manager
Data Tethers
Deutsches Portal
Device Detection Tool
Device Driver Utility
Device Manager
Device Mapper
Direct Rendering Infrastructure & 3D drivers
DTrace Guide
Duckwater: Simplified name services management
Easy Tools
Emancipation
Emulex Fibre Channel Device Driver
Emulex Advanced Ethernet Device Driver
Enable/Enhance Solaris support for Intel Platform
Enhance the support of USB webcams
Enhanced SMF Profiles
Enhancements for AMD-based Platforms
Erlang DTrace Integration
Ethernet bridge module for Solaris
Evaluate Conary
Events Registry
Ext3 file system support
F/OSS Package Base
Facilitation
Fibre Channel over Ethernet
Fine Grained Access Policy (FGAP)
Fingerprint Authentication
Flexible Mandatory Access Control
Forensic Tools
Fully Open X Project
Fuse on Solaris
gcore
Generic Machine Check Architecture Improvements
Google SOC
HA-JBoss
HA-MySQL
Hadoop Live CD
Hitachi
HoneyComb Fixed Content Storage
HPC Stack
Image Packaging System
Improved Performance MIB
Indiana
Innovation Awards
Input Method
Intel Graphics
Interrupt Resource Management
IP Datapath Refactoring
IP over Infiniband
IPsec Tunnel Reform
iSCSI Extensions for Remote DMA (iSER)
iSNS Server
JeOS - Just enough Operating System
JKstat - a java binding for libkstat
Journaled File System (JFS)
K Desktop Environment
Kerberos
Kernel Sockets
Kernel SSL Enhancements
Key Management Framework
Korn Shell 93 integration/migration project
Labeled IPsec
LatencyTOP
Layer 2 Filtering
LDoms Manager
Lending
libMicro - portable microbenchmarks
Link Layer Discovery
Live Media: Technologies for distributions running from CD and other media
Locale Data
lofi compression and cryptography support
lx64 brand
Media Management System
Mega_sas
Mexico
MilaX minimal Live Distribution
MIPS Platform Port
Mozilla DTrace
MRSL.NONsharedDevice
Multi-lingual Glossary
Multi-pathing software (MPxIO)
Multiple disk sector size support
Multiple DOI
Muskoka: An open repository for OpenSolaris technical content
Navigator
Nemo: A Framework for High-Performance Networking
Network Auto-Magic
Network Data Management Protocol
Network MIBs
Network Storage
Network Time Protocol (NTP)
Nevada Globalization
New Design of 4over6 Mechanism Based on OpenSolaris
NFS RDMA transport update and performance analysis
NFS Server in non-Global Zones
NFS version 4.1 pNFS
NFSv4 namespace extensions
Nightingale: Port Songbird to OpenSolaris
NPort ID Virtualization (NPIV)
NUMA
Object Storage Device (OSD) support for Solaris
OHACGE Script Based Plug-in
ON/Nevada (ONNV) Project
Open Development Infrastructure
Open HA Cluster Utilities
Open Sound System
OpenGrok
OpenPegasus CIM Server
OpenRTI
OpenSolaris Busybox
OpenSolaris Desktop
OpenSolaris Hispano
OpenSolaris Security Audit
OpenSolaris support for the QEMU processor emulator: host and guest
PEF: Packet Event Framework
Performance Wrappers
Pkgfactory
Polski Portal
Portail Francophone
Portal Brasil
Portals
Power Management Usability Interfaces
Presto: Automatic Printing Configuration
Printable Many Page Solaris Manuals
Promise SuperTrak RAID HBA Driver
QLogic Converged Network Adapter GLDv3 NIC Driver
Quagga Routing Protocol Suite Integration
RAID Configuration Utility
RBridge (IETF TRILL) support
RDMA Offload Framework
Reno: Login Process Enhancements for Interop
Resource Management
s10brand
SAM/QFS
SCM Migration Project
SCSI RDMA Protocol
SDcard Drivers
Sensor Abstraction Layer
Session Initiation Protocol
SFW
Shell: bourne shell, korn shell, C shell, etc.
Sierra: Intel WiFi Chipsets Support
Simple Panels
SM-HBA Based SAS HBA Management
SMF Documentation
Solaris iSCSI Target
Solaris PowerPC Port
SourceJuicer
Sparks: name service switch/nscd enhancements
Squashfs
Star integration/migration project
Starfish
Starter Kit
Storage Power Management
Sun Security Toolkit
Sun StorageTek Availability Suite
Support for OpenFabrics User Verbs / API on OpenSolaris OS
Support gcc4/GCCfss in Solaris
Suspend/Resume
SVR4 Packaging
Systemz
Tamarack: Removable Media Enhancements in Solaris
Tesla: OpenSolaris Enhanced Power Management
Test Development
Tickless Kernel Architecture
TIPC
Trademarks
Trusted networking interface policy database for Trusted Extensions
Trusted Platform Module support
Use Case
Validated Execution Project
Virtual Console
Virtual Network Machines
Visual Panels
Visualization for HPC
Volo
VRRP: Virtual Router Redundancy Protocol Implementation
VSCAN service
Web Stack
Website
Winchester: Schema mapping and ID mapping for AD Interoperability
Wireless USB Support
Wireless Wide Area Network
X Consolidation
x86 Generic FMA Topology Enumerator
Xen Gate
Xfce: A lightweight desktop environment
ZFS Boot and Install
ZFS on disk encryption support
Zone Manager
Zone Statistics
Русский портал
البوابة العربية
भारतीय पोर्टल
中国门户
日本ポータル
한국 포탈
User Group
Adelaide
Argentina
Arizona
Atlanta
Baltimore-Washington
Bangalore
Bangkok
Bangladesh
Beijing
Bélem
Berlin
Bhimavaram
Bloomington
Campus Ambassadors
Capital Region
Cardiff
Charlotte
Chengdu
Chennai
Chihuahua
Chile
Cleveland
Colombia
Columbus
Connecticut
Cracow
Czech
Dallas/Ft. Worth
Danish
Delaware
Edinburgh
Egypt
Finland
Florida
Front Range
FuZhou
Great Lakes
Greece
Hangzhou
Hawaii
HeFei
Houston
Hyderabad
Indonesia
Irish
Israel
Italian
Jinan
Kabul
Kansas City
Latvia
London
Madurai
Manchester
Mato Grosso
Melbourne
Minas Gerais
Minnesota
Montreal
Moscow
Mumbai
Munich
NEA
Netherlands
New England
New York City
New Zealand
NIT Hamirpur
Noroeste
Oklahoma City
Osnabrück
Peru
Philadelphia
Piaski
Pittsburgh
Porto Alegre
Puget Sound
Pune
Queensland
Research Triangle Park
Romania
Russia
San Antonio
San Diego
San Francisco
São Paulo
Scottish
Serbia
Shanghai
Shenzhen
Silicon Valley
Singapore
Slovak
South African
Southern Connecticut
St. Louis
Sweden
Switzerland
Sydney
Szczecin
Taiwan
Tecum
Thames Valley
Tokyo
Toronto
Trondheim
Tulsa
Turkey
Ukraine
University of Melbourne
Vale do Paraíba
Vancouver
Venezuela
Welsh - Cymru
Wisconsin
Xi'an
Subsites
Code Reviews
Code Repositories
Package Search
Bugster
Bugzilla
Test Machines
Planet
Mailing Lists
Elections & Polls
ARC Case Logs
Source Juicer
Package Factory
User Authentication
Project webstack Pages
Documentation
Useful Links
Mailing Lists
Creating Web Stack Components
Cool Stack Info
Files
Web Stack License
Web Stack Project Repository
Sun Web Stack