In case of porting simple patches, the tutorial linked by EzZn0 is adequate. However if you want to port more complicated patches then read the Modifying-creating Advanced Patches - SE-NSE Forums topic.