How-To Build a Simple Slack Package

Similar documents
Flwrap Users Manual Generated by Doxygen

Cucumber Linux Distribution

Lab 1 Introduction to UNIX and C

Introduction to Unix: Fundamental Commands

Package management rpm Package management with yum The tar tool

FLWRAP Users Manual 1.3. Generated by Doxygen Wed Jun :40:27

CSC UNIX System, Spring 2015

Opera Web Browser Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Lab #1 Installing a System Due Friday, September 6, 2002

Leaseweb Hosting Services - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Unicornscan Documentation Getting Started

University of the Free State - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

LINUX FUNDAMENTALS. Supported Distributions: Red Hat Enterprise Linux 6 SUSE Linux Enterprise 11 Ubuntu LTS. Recommended Class Length: 5 days

OCTVQE Zaptel Echo Canceller (PRELIMINARY)

Prerequisites: Students should be comfortable with computers. No familiarity with Linux or other Unix operating systems is required.

Makefile Brief Reference

The build2 Toolchain Installation and Upgrade

============================================================

Assignment Submission HOWTO

Online Backup Client User Manual

7. Archiving and compressing 7.1 Introduction

Vienna University of Technology - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Unzip zip files command line

Linux Fundamentals (L-120)


CSC BioWeek 2018: Using Taito cluster for high throughput data analysis

RTEMS Release Notes. On-Line Applications Research Corporation. Edition 1, for RTEMS beta3. May 2000

GWDG Software Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Chapter-3. Introduction to Unix: Fundamental Commands

CS3114 (Fall 2013) PROGRAMMING ASSIGNMENT #2 Due Tuesday, October 11:00 PM for 100 points Due Monday, October 11:00 PM for 10 point bonus

CSC BioWeek 2016: Using Taito cluster for high throughput data analysis

Binary Analysis Tool

CDNetworks Software Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Indiana University - FTP Site Statistics. Top 20 Directories Sorted by Disk Space


Unzip command in unix

Release Notes. LabVIEW Application Builder for Macintosh. Contents

System Administration for Beginners

CSC 112 Lab 1: Introduction to Unix and C++ Fall 2009

1Z Oracle Linux Fundamentals (Oracle Partner Network) Exam Summary Syllabus Questions

Practical Installing utility software 7Zip on Windows

Macomnet Telecommunications - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

LINUX FUNDAMENTALS (5 Day)

Molecular Forecaster Inc. Forecaster 1.2 Server Installation Guide

Internet Solutions - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

HugeServer Networks Software Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

The student will have the essential skills needed to be proficient at the Unix or Linux command line.

Building RPMs for Native Application Hosting

SDK. About the Cisco SDK. Installing the SDK. Procedure. This chapter contains the following sections:

7 zip linux gui. Search

### build an Archive::Extract object ### my $ae = Archive::Extract->new( archive => 'foo.tgz' );

Movidius Neural Compute Stick

Unix background. COMP9021, Session 2, Using the Terminal application, open an x-term window. You type your commands in an x-term window.

Installing LEON VxWorks 6.9

These are instructions for building Perl under DOS (or w??), using DJGPP v2.03 or later. Under w95 long filenames are supported.

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

3. When you process a largest recent earthquake query, you should print out:

Contributors Dhanya.P Std II Reviewers. This topic describes how a new document is created and saved.

Introduction. File System. Note. Achtung!

Tomsk State Pedagogical University - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Introduction to remote command line Linux. Research Computing Team University of Birmingham

Croatian Academic and Research Network - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

MINI-HOWTO backup and/or restore device or partition using zsplit/unzsplit

Building and Installing QGIS

AutoForm plus R6.0.3 Release Notes

Fundamental 2. Lec#04. Shugofa Hassani

Khronos Group Conformance Process

token string (required) A valid token that was provided by the gettoken() method

7.3 Install on Linux and Initial Configurations

*nix Crash Course. Presented by: Virginia Tech Linux / Unix Users Group VTLUUG

Release Notes. LabVIEW Application Builder for Windows. Contents

Standards and Practices

A Makefile. The Makefile contains various statements that specify how the application should be compiled and where it should be installed on your

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion.

Embedded Linux development made easier. User s manual. Version:

Applied Informatics POCO PRO C++ Frameworks

Package Management System

7zip windows mobile 7-Zip Windows Mobile -Zip 7-Zip Windows Mobile 7-Zip 7-Zip 7-Zip 7-Zip Windows 7-Zip Windows Windows Windows Windows Windows

Manual Shell Script Linux If File Exists Wildcard

Introduction of Linux

Mali Offline Compiler User Guide

2019/01/15 23:58 (UTC) 1/11 binfmt_misc

Release Note MPI/XMP-Linux Support Package

CS 460 Linux Tutorial

CS Unix Tools. Fall 2010 Lecture 8. Hussam Abu-Libdeh based on slides by David Slater. September 24, 2010

Prerequisites: General computing knowledge and experience. No prior knowledge with Linux is required. Supported Distributions:

Lab #3 Automating Installation & Introduction to Make Due in Lab, September 15, 2004

Com S 227 Assignment Submission HOWTO

Short Read Sequencing Analysis Workshop

Install Nextcloud on Synology NAS

Retek Integrated Store Operations Installation Guide

Operating Systems Coursework Task 3

Read these notes completely first!

Linux Essentials. Smith, Roderick W. Table of Contents ISBN-13: Introduction xvii. Chapter 1 Selecting an Operating System 1

COPYRIGHTED MATERIAL. Installing Xcode. The Xcode Installer

Pulsant Cloud Hosting - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

ITST Searching, Extracting & Archiving Data

client X11 Linux workstation

Simics Installation Guide for Linux/Solaris

OSELAS.Support OSELAS.Training OSELAS.Development OSELAS.Services

Transcription:

How-To Build a Simple Slack Package Autore: Paolo Ottolino Revisione: Paolo Ottolino Approvato: Paolo Ottolino

Pagina 2 di 7 Version Version Date Modification Author 1.0 18/01/11 Stesura Paolo Ottolino Reference Documents Ref. Title Author 1 2 3 4 5 6

Pagina 3 di 7 Indice 1 Introduction... 4 1.1 Objectives...4 1.2 Document Structure...4 1.3 Acronyms...4 2 Build a Simple Slackware Package... 5 2.1 Clean Work Area...5 2.2 Building...5 2.3 Installing...5 2.4 Packaging...6 2.5 Filename...6 2.6 Dependencies...6 2.6.1 Legal Issues...6

Pagina 4 di 7 1 Introduction 1.1 Objectives The aim of this document is about quick and dirty package build for Slackware. It shows just a row procedure and it is not an all inclusive howto. Special attention should be made for: permissions dependencies file location 1.2 Document Structure This document contains a unique chapter: Chapter 2: How-To Build a Simple Slackware Package 1.3 Acronyms TAR TGZ TXZ Tape ARchive Tar GNU Zip Tar extreme Zip

Pagina 5 di 7 2 Build a Simple Slackware Package 2.1 Clean Work Area The first step is to arrange a clean work area, encompassing: work (mkdir /usr/local/src/work) scripts: cripts to make it easy to upgrade them if needed (mkdir /usr/local/src/work/scritps) builds: where to try to install the program to (mkdir /usr/local/src/work/builds) The next obvious step is to: Get the program (that is, download from Internet) Unarchive it Move to work area 2.2 Building Then, it needs to switch to usual building process: configure-make-make_install. So, the third step is about building the proper Makefile and using it: Configure:./configure --prefix=/usr --sysconfdir=/etc localstatedir=/var (it works on 90% of the times) Make: just make the package as usual (it could take time of CPU running) 2.3 Installing Now, the binary are ready, those are to be correctly positioned, in order to build the package: Make Install: move the file to the proper location (that is the builds directory). Usually, to accomplish this it is sufficient to add a further parameter in the command line. One of the following 3 should work: make install DESTDIR=//usr/local/src/work/builds make install ROOT=//usr/local/src/work/builds make install prefix=/usr/local/src//work/builds Check: the three options above, normally work for most programs, however some will not. Perform a check no binary have copied outside desired folder. That is, do make a search inside /usr forlder. Use one of the following: installwatch: use this tool (there are 2 versions) find: issue the following command find /usr -cnewer /usr/local/src/work/builds/usr/bin/<file> Move: if anything was find, move to build area Install: create the folder install under /usr/localsrc/work/builds Slack-Desc: write this little file, in install directory, containing a description of the program and application and the name of the person who performed package builder

Pagina 6 di 7 DoInst.sh: bash file to be created, inside the install directory, in the case there are some symbolic link to treat 2.4 Packaging The final phase. In order to finally create the package, follow this steps: Permission: check the builds directory and any file inside is owned by root makepkg: final step, package creation cd /usr/loca/src/work/builds read carefully the next paragraph about filename issue the command: makepkg <app>-<ver>-<arch>-<build><3lettername>.txz Reset: during makepkg running, the question about to reset all directory permissions to 755 and ownership to root.root will be issued. Say yes 2.5 Filename The package filename format is the following: <application>-<version>-<arch>-<build><3letter-name>.toz That is: <application>: program or application name <version>: program or application version <build>: compilation attempts (usually number greater than 1 implies bug solutions) <3letter-name>: shot for the compiler (it implies not official package) A brief note about archiving and compression (toz). O could assume 2 values: g or x, leading to: tgz: older version, encompassing tar archive in standard gzip format (Lempel Ziv algorithm). In order to obtain that directly during archiving use: tar -xcvf txz: newer version (adopted on May 8, 2009), encompassing tar archive in modern xz (lzma) format (Lempel Ziv Markov). In order to obtain that directly during archiving use: tar -Jcvf 2.6 Dependencies Be sure that if a package requires libraries that are not part of a standard Slackware: usually the best option: install you either create a new package with just those libraries only that program uses : include them in the package optional library: make sure you put that and any other information in a readme file and put it with your package where ever you put it for download. 2.6.1 Legal Issues Also where ever you put your package you need to put the source remember the GPL. Also check your program make sure its legal to do what you are doing with it