Pack the application
Last updated
Last updated
.
├── ipkg-build # Script used to pack
└── test #Example application to illustrate packing
├── CONTROL # Directory of the information of the application
│ ├── conffiles #config files, the files listed by absolute path in this file will not be overwritten during update
│ ├── control # Information of the application, the ones will be displayed when using $opkg info. Especially,
#1. Architecture: arm. This must be same as the TIYcam. Use to command $opkg print-architecture to check on TIYCam.
#2. Depends: bas means the dependent application packages. The installation process will check the dependency. If there is no depended packages, the installation will fail or if the source has it, it will automatically install it.
│ ├── postinst #The script to be executed after installation. Normally it is a start command.
│ ├── postrm #The script to be executed after remove. Normally it is empty or delete some intermediate files that are generated by the application.
│ ├── preinst #The script to be executed before installation. Normally it is empty.
│ ├──prerm #The script to be executed before remove. Normally it is stopping services.
├── etc
│ └── init.d
│ └── S80test # The start script. Refer to implement start/stop/restart. Note start needs to run in background.
└── usr
└── bin #The binaries of the application needs to stay here
└── test
├── lib #The dynamic libraries need to stay here
└── share #The dependent files need to stay here within a subdirectory with packgename